agentops icon indicating copy to clipboard operation
agentops copied to clipboard

[Bug]: CrewAI `base_tool` not being recorded as tool event

Open bboynton97 opened this issue 1 year ago • 1 comments

Contact Details

No response

📦 Package Version

0.3.21

🎞️ Framework Version

crewai==0.83.0

🔎 Describe the Bug

Crew now has two ways that you can define a tool. one is the langchain @tool decorator, which when used calls the langchain callback handler. the other is by inheriting from BaseTool, which does not call the langchain callback handler.

When using @tool, tool events are captured. When using BaseTool, AgentOps does not capture the tool event.

🤝 Contribution

  • [ ] Yes, I'd be happy to submit a pull request with these changes.
  • [ ] I need some guidance on how to contribute.
  • [X] I'd prefer the AgentOps team to handle this update.

bboynton97 avatar Jan 03 '25 00:01 bboynton97