Skip to content

[Bug]: CrewAI base_tool not being recorded as tool eventΒ #621

@bboynton97

Description

@bboynton97

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.
  • I'd prefer the AgentOps team to handle this update.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions