Skip to main content

Set of tools for the crewAI framework

Project description

Logo of crewAI, two people rowing on a boat

crewAI Tools

Welcome to crewAI Tools! This repository provides a comprehensive guide for setting up sophisticated tools for crewAI agents, empowering your AI solutions with bespoke tooling.

In the realm of CrewAI agents, tools are pivotal for enhancing functionality. This guide outlines the steps to equip your agents with an arsenal of ready-to-use tools and the methodology to craft your own.

Homepage | Documentation | Chat with Docs | Examples | Discord

Table of contents

Available Tools

crewAI Tools provides a wide range of pre-built tools, including:

  • File operations (FileWriterTool, FileReadTool)
  • Web scraping (ScrapeWebsiteTool, SeleniumScrapingTool)
  • Database interactions (PGSearchTool, MySQLSearchTool)
  • API integrations (SerperApiTool, EXASearchTool)
  • AI-powered tools (DallETool, VisionTool)
  • And many more!

For a complete list and detailed documentation of each tool, please refer to the individual tool README files in the repository.

Creating Your Tools

Tools are always expect to return strings, as they are meant to be used by the agents to generate responses.

There are three ways to create tools for crewAI agents:

Subclassing BaseTool

from crewai_tools import BaseTool

class MyCustomTool(BaseTool):
    name: str = "Name of my tool"
    description: str = "Clear description for what this tool is useful for, you agent will need this information to use it."

    def _run(self, argument: str) -> str:
        # Implementation goes here
        pass

Define a new class inheriting from BaseTool, specifying name, description, and the _run method for operational logic.

Utilizing the tool Decorator

For a simpler approach, create a Tool object directly with the required attributes and a functional logic.

from crewai_tools import tool
@tool("Name of my tool")
def my_tool(question: str) -> str:
    """Clear description for what this tool is useful for, you agent will need this information to use it."""
    # Function logic here

The tool decorator simplifies the process, transforming functions into tools with minimal overhead.

Contribution Guidelines

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please ensure your code adheres to our coding standards and includes appropriate tests.

Development Setup

Installing Dependencies:

uv sync

Activating Virtual Environment:

uv venv
source .venv/bin/activate

Setting Up Pre-commit Hooks:

pre-commit install

Running Tests:

uv run pytest

Static Type Checking:

uv run pyright

Packaging:

uv build

Local Installation:

pip install dist/*.tar.gz

Thank you for your interest in enhancing the capabilities of AI agents through advanced tooling. Your contributions make a significant impact.

Contact

For questions or support, please join our Discord community or open an issue in this repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crewai_tools-0.13.1.tar.gz (816.3 kB view details)

Uploaded Source

Built Distribution

crewai_tools-0.13.1-py3-none-any.whl (463.4 kB view details)

Uploaded Python 3

File details

Details for the file crewai_tools-0.13.1.tar.gz.

File metadata

  • Download URL: crewai_tools-0.13.1.tar.gz
  • Upload date:
  • Size: 816.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for crewai_tools-0.13.1.tar.gz
Algorithm Hash digest
SHA256 363c7ec717f4c6f9b61cec9314a5ec2fbd026d75e8e6278f49f715ed5915cd4d
MD5 15c521e8a8e015df3e54a24aeb71be57
BLAKE2b-256 d581b8a0bb984aea2af49b0072e074c87c75a6c4581902b81f3a3d46f95f01c7

See more details on using hashes here.

File details

Details for the file crewai_tools-0.13.1-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_tools-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62067e2502bf66c0ae2e3a833c60b900bd1f793a9a80895a1f10a9cfa1b5dc3c
MD5 414a230008b965a21b1300dfae159865
BLAKE2b-256 098a04c885da3e01d1f11478dd866d3506906bfb60d7587627dd4b132ff10f64

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page