Understanding and leveraging tools within the CrewAI framework for agent collaboration and task execution.
CrewAI tools empower agents with capabilities ranging from web searching and data analysis to collaboration and delegating tasks among coworkers. This documentation outlines how to create, integrate, and leverage these tools within the CrewAI framework, including a new focus on collaboration tools.
A tool in CrewAI is a skill or function that agents can utilize to perform various actions. This includes tools from the CrewAI Toolkit and LangChain Tools, enabling everything from simple searches to complex interactions and effective teamwork among agents.
CrewAI Enterprise provides a comprehensive Tools Repository with pre-built integrations for common business systems and APIs. Deploy agents with enterprise tools in minutes instead of days.
The Enterprise Tools Repository includes:
To enhance your agents’ capabilities with crewAI tools, begin by installing our extra tools package:
Here’s an example demonstrating their use:
cache_function
attribute on the tool.Here is a list of the available tools and their descriptions:
Tool | Description |
---|---|
ApifyActorsTool | A tool that integrates Apify Actors with your workflows for web scraping and automation tasks. |
BrowserbaseLoadTool | A tool for interacting with and extracting data from web browsers. |
CodeDocsSearchTool | A RAG tool optimized for searching through code documentation and related technical documents. |
CodeInterpreterTool | A tool for interpreting python code. |
ComposioTool | Enables use of Composio tools. |
CSVSearchTool | A RAG tool designed for searching within CSV files, tailored to handle structured data. |
DALL-E Tool | A tool for generating images using the DALL-E API. |
DirectorySearchTool | A RAG tool for searching within directories, useful for navigating through file systems. |
DOCXSearchTool | A RAG tool aimed at searching within DOCX documents, ideal for processing Word files. |
DirectoryReadTool | Facilitates reading and processing of directory structures and their contents. |
EXASearchTool | A tool designed for performing exhaustive searches across various data sources. |
FileReadTool | Enables reading and extracting data from files, supporting various file formats. |
FirecrawlSearchTool | A tool to search webpages using Firecrawl and return the results. |
FirecrawlCrawlWebsiteTool | A tool for crawling webpages using Firecrawl. |
FirecrawlScrapeWebsiteTool | A tool for scraping webpages URL using Firecrawl and returning its contents. |
GithubSearchTool | A RAG tool for searching within GitHub repositories, useful for code and documentation search. |
SerperDevTool | A specialized tool for development purposes, with specific functionalities under development. |
TXTSearchTool | A RAG tool focused on searching within text (.txt) files, suitable for unstructured data. |
JSONSearchTool | A RAG tool designed for searching within JSON files, catering to structured data handling. |
LlamaIndexTool | Enables the use of LlamaIndex tools. |
MDXSearchTool | A RAG tool tailored for searching within Markdown (MDX) files, useful for documentation. |
PDFSearchTool | A RAG tool aimed at searching within PDF documents, ideal for processing scanned documents. |
PGSearchTool | A RAG tool optimized for searching within PostgreSQL databases, suitable for database queries. |
Vision Tool | A tool for generating images using the DALL-E API. |
RagTool | A general-purpose RAG tool capable of handling various data sources and types. |
ScrapeElementFromWebsiteTool | Enables scraping specific elements from websites, useful for targeted data extraction. |
ScrapeWebsiteTool | Facilitates scraping entire websites, ideal for comprehensive data collection. |
WebsiteSearchTool | A RAG tool for searching website content, optimized for web data extraction. |
XMLSearchTool | A RAG tool designed for searching within XML files, suitable for structured data formats. |
YoutubeChannelSearchTool | A RAG tool for searching within YouTube channels, useful for video content analysis. |
YoutubeVideoSearchTool | A RAG tool aimed at searching within YouTube videos, ideal for video data extraction. |
Developers can craft custom tools
tailored for their agent’s needs or
utilize pre-built options.
There are two main ways for one to create a CrewAI tool:
BaseTool
CrewAI supports asynchronous tools, allowing you to implement tools that perform non-blocking operations like network requests, file I/O, or other async operations without blocking the main execution thread.
You can create async tools in two ways:
tool
Decorator with Async FunctionsAsync tools work seamlessly in both standard Crew workflows and Flow-based workflows:
The CrewAI framework automatically handles the execution of both synchronous and asynchronous tools, so you don’t need to worry about how to call them differently.
tool
DecoratorTools can optionally implement a cache_function
to fine-tune caching
behavior. This function determines when to cache results based on specific
conditions, offering granular control over caching logic.
Tools are pivotal in extending the capabilities of CrewAI agents, enabling them to undertake a broad spectrum of tasks and collaborate effectively. When building solutions with CrewAI, leverage both custom and existing tools to empower your agents and enhance the AI ecosystem. Consider utilizing error handling, caching mechanisms, and the flexibility of tool arguments to optimize your agents’ performance and capabilities.
Understanding and leveraging tools within the CrewAI framework for agent collaboration and task execution.
CrewAI tools empower agents with capabilities ranging from web searching and data analysis to collaboration and delegating tasks among coworkers. This documentation outlines how to create, integrate, and leverage these tools within the CrewAI framework, including a new focus on collaboration tools.
A tool in CrewAI is a skill or function that agents can utilize to perform various actions. This includes tools from the CrewAI Toolkit and LangChain Tools, enabling everything from simple searches to complex interactions and effective teamwork among agents.
CrewAI Enterprise provides a comprehensive Tools Repository with pre-built integrations for common business systems and APIs. Deploy agents with enterprise tools in minutes instead of days.
The Enterprise Tools Repository includes:
To enhance your agents’ capabilities with crewAI tools, begin by installing our extra tools package:
Here’s an example demonstrating their use:
cache_function
attribute on the tool.Here is a list of the available tools and their descriptions:
Tool | Description |
---|---|
ApifyActorsTool | A tool that integrates Apify Actors with your workflows for web scraping and automation tasks. |
BrowserbaseLoadTool | A tool for interacting with and extracting data from web browsers. |
CodeDocsSearchTool | A RAG tool optimized for searching through code documentation and related technical documents. |
CodeInterpreterTool | A tool for interpreting python code. |
ComposioTool | Enables use of Composio tools. |
CSVSearchTool | A RAG tool designed for searching within CSV files, tailored to handle structured data. |
DALL-E Tool | A tool for generating images using the DALL-E API. |
DirectorySearchTool | A RAG tool for searching within directories, useful for navigating through file systems. |
DOCXSearchTool | A RAG tool aimed at searching within DOCX documents, ideal for processing Word files. |
DirectoryReadTool | Facilitates reading and processing of directory structures and their contents. |
EXASearchTool | A tool designed for performing exhaustive searches across various data sources. |
FileReadTool | Enables reading and extracting data from files, supporting various file formats. |
FirecrawlSearchTool | A tool to search webpages using Firecrawl and return the results. |
FirecrawlCrawlWebsiteTool | A tool for crawling webpages using Firecrawl. |
FirecrawlScrapeWebsiteTool | A tool for scraping webpages URL using Firecrawl and returning its contents. |
GithubSearchTool | A RAG tool for searching within GitHub repositories, useful for code and documentation search. |
SerperDevTool | A specialized tool for development purposes, with specific functionalities under development. |
TXTSearchTool | A RAG tool focused on searching within text (.txt) files, suitable for unstructured data. |
JSONSearchTool | A RAG tool designed for searching within JSON files, catering to structured data handling. |
LlamaIndexTool | Enables the use of LlamaIndex tools. |
MDXSearchTool | A RAG tool tailored for searching within Markdown (MDX) files, useful for documentation. |
PDFSearchTool | A RAG tool aimed at searching within PDF documents, ideal for processing scanned documents. |
PGSearchTool | A RAG tool optimized for searching within PostgreSQL databases, suitable for database queries. |
Vision Tool | A tool for generating images using the DALL-E API. |
RagTool | A general-purpose RAG tool capable of handling various data sources and types. |
ScrapeElementFromWebsiteTool | Enables scraping specific elements from websites, useful for targeted data extraction. |
ScrapeWebsiteTool | Facilitates scraping entire websites, ideal for comprehensive data collection. |
WebsiteSearchTool | A RAG tool for searching website content, optimized for web data extraction. |
XMLSearchTool | A RAG tool designed for searching within XML files, suitable for structured data formats. |
YoutubeChannelSearchTool | A RAG tool for searching within YouTube channels, useful for video content analysis. |
YoutubeVideoSearchTool | A RAG tool aimed at searching within YouTube videos, ideal for video data extraction. |
Developers can craft custom tools
tailored for their agent’s needs or
utilize pre-built options.
There are two main ways for one to create a CrewAI tool:
BaseTool
CrewAI supports asynchronous tools, allowing you to implement tools that perform non-blocking operations like network requests, file I/O, or other async operations without blocking the main execution thread.
You can create async tools in two ways:
tool
Decorator with Async FunctionsAsync tools work seamlessly in both standard Crew workflows and Flow-based workflows:
The CrewAI framework automatically handles the execution of both synchronous and asynchronous tools, so you don’t need to worry about how to call them differently.
tool
DecoratorTools can optionally implement a cache_function
to fine-tune caching
behavior. This function determines when to cache results based on specific
conditions, offering granular control over caching logic.
Tools are pivotal in extending the capabilities of CrewAI agents, enabling them to undertake a broad spectrum of tasks and collaborate effectively. When building solutions with CrewAI, leverage both custom and existing tools to empower your agents and enhance the AI ecosystem. Consider utilizing error handling, caching mechanisms, and the flexibility of tool arguments to optimize your agents’ performance and capabilities.