Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Use CrewAI BaseTool class #11

Open

Description

@whoabuddy

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.

  1. Install crewai_tools with your package manager
  2. 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.

Activity

  1. biwasxyz commented on Oct 2, 2024

    @biwasxyz
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions