mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
adding docs for new tools
This commit is contained in:
@@ -105,6 +105,7 @@ Here is a list of the available tools and their descriptions:
|
|||||||
| **CodeInterpreterTool** | A tool for interpreting python code. |
|
| **CodeInterpreterTool** | A tool for interpreting python code. |
|
||||||
| **ComposioTool** | Enables use of Composio tools. |
|
| **ComposioTool** | Enables use of Composio tools. |
|
||||||
| **CSVSearchTool** | A RAG tool designed for searching within CSV files, tailored to handle structured data. |
|
| **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. |
|
| **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. |
|
| **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. |
|
| **DirectoryReadTool** | Facilitates reading and processing of directory structures and their contents. |
|
||||||
@@ -121,6 +122,7 @@ Here is a list of the available tools and their descriptions:
|
|||||||
| **MDXSearchTool** | A RAG tool tailored for searching within Markdown (MDX) files, useful for documentation. |
|
| **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. |
|
| **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. |
|
| **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. |
|
| **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. |
|
| **ScrapeElementFromWebsiteTool** | Enables scraping specific elements from websites, useful for targeted data extraction. |
|
||||||
| **ScrapeWebsiteTool** | Facilitates scraping entire websites, ideal for comprehensive data collection. |
|
| **ScrapeWebsiteTool** | Facilitates scraping entire websites, ideal for comprehensive data collection. |
|
||||||
|
|||||||
41
docs/tools/DALL-ETool.md
Normal file
41
docs/tools/DALL-ETool.md
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# DALL-E Tool
|
||||||
|
|
||||||
|
## Description
|
||||||
|
This tool is used to give the Agent the ability to generate images using the DALL-E model. It is a transformer-based model that generates images from textual descriptions. This tool allows the Agent to generate images based on the text input provided by the user.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
Install the crewai_tools package
|
||||||
|
```shell
|
||||||
|
pip install 'crewai[tools]'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
Remember that when using this tool, the text must be generated by the Agent itself. The text must be a description of the image you want to generate.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from crewai_tools import DallETool
|
||||||
|
|
||||||
|
Agent(
|
||||||
|
...
|
||||||
|
tools=[DallETool()],
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
If needed you can also tweak the parameters of the DALL-E model by passing them as arguments to the `DallETool` class. For example:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from crewai_tools import DallETool
|
||||||
|
|
||||||
|
dalle_tool = DallETool(model: str = "dall-e-3",
|
||||||
|
size: str = "1024x1024",
|
||||||
|
quality: str = "standard",
|
||||||
|
n: int = 1)
|
||||||
|
|
||||||
|
Agent(
|
||||||
|
...
|
||||||
|
tools=[dalle_tool]
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
The parameter are based on the `client.images.generate` method from the OpenAI API. For more information on the parameters, please refer to the [OpenAI API documentation](https://platform.openai.com/docs/guides/images/introduction?lang=python).
|
||||||
30
docs/tools/VisionTool.md
Normal file
30
docs/tools/VisionTool.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Vision Tool
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
This tool is used to extract text from images. When passed to the agent it will extract the text from the image and then use it to generate a response, report or any other output. The URL or the PATH of the image should be passed to the Agent.
|
||||||
|
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
Install the crewai_tools package
|
||||||
|
```shell
|
||||||
|
pip install 'crewai[tools]'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
In order to use the VisionTool, the OpenAI API key should be set in the environment variable `OPENAI_API_KEY`.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from crewai_tools import VisionTool
|
||||||
|
|
||||||
|
vision_tool = VisionTool()
|
||||||
|
|
||||||
|
@agent
|
||||||
|
def researcher(self) -> Agent:
|
||||||
|
return Agent(
|
||||||
|
config=self.agents_config["researcher"],
|
||||||
|
allow_delegation=False,
|
||||||
|
tools=[vision_tool]
|
||||||
|
)
|
||||||
|
```
|
||||||
@@ -162,6 +162,7 @@ nav:
|
|||||||
- File Read: 'tools/FileReadTool.md'
|
- File Read: 'tools/FileReadTool.md'
|
||||||
- Selenium Scraper: 'tools/SeleniumScrapingTool.md'
|
- Selenium Scraper: 'tools/SeleniumScrapingTool.md'
|
||||||
- Directory RAG Search: 'tools/DirectorySearchTool.md'
|
- Directory RAG Search: 'tools/DirectorySearchTool.md'
|
||||||
|
- DALL-E Tool: 'tools/DALL-ETool.md'
|
||||||
- PDF RAG Search: 'tools/PDFSearchTool.md'
|
- PDF RAG Search: 'tools/PDFSearchTool.md'
|
||||||
- TXT RAG Search: 'tools/TXTSearchTool.md'
|
- TXT RAG Search: 'tools/TXTSearchTool.md'
|
||||||
- CSV RAG Search: 'tools/CSVSearchTool.md'
|
- CSV RAG Search: 'tools/CSVSearchTool.md'
|
||||||
@@ -170,6 +171,7 @@ nav:
|
|||||||
- Docx Rag Search: 'tools/DOCXSearchTool.md'
|
- Docx Rag Search: 'tools/DOCXSearchTool.md'
|
||||||
- MDX RAG Search: 'tools/MDXSearchTool.md'
|
- MDX RAG Search: 'tools/MDXSearchTool.md'
|
||||||
- PG RAG Search: 'tools/PGSearchTool.md'
|
- PG RAG Search: 'tools/PGSearchTool.md'
|
||||||
|
- Vision Tool: 'tools/VisionTool.md'
|
||||||
- Website RAG Search: 'tools/WebsiteSearchTool.md'
|
- Website RAG Search: 'tools/WebsiteSearchTool.md'
|
||||||
- Github RAG Search: 'tools/GitHubSearchTool.md'
|
- Github RAG Search: 'tools/GitHubSearchTool.md'
|
||||||
- Code Docs RAG Search: 'tools/CodeDocsSearchTool.md'
|
- Code Docs RAG Search: 'tools/CodeDocsSearchTool.md'
|
||||||
|
|||||||
Reference in New Issue
Block a user