You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
The errors you are getting with your crew are related to how you've defined BaseTool - it's actually something provided by the framework and formatted a little different from what you created here.
To create new tools for agents you can either subclass BaseTool (similar to what you've done now), or use the @tool decorator, both from CrewAI's pacakages.
Install crewai_tools with your package manager
Use from crewai_tools import BaseTool (and/or the tool decorator)
The documentation gives some examples on creating custom tools and the ai-agent-crew repo uses the @tool decorator, either way is acceptable.
I tried both methods and still got some errors. For now we'll use the tools defined in the docs only. I might need a little help and debugging from you in order to create custom tools.
Activity
biwasxyz commentedon Oct 2, 2024
I tried both methods and still got some errors. For now we'll use the tools defined in the docs only. I might need a little help and debugging from you in order to create custom tools.