docs: add CodeinterpreterTool to docs and update docs

This commit is contained in:
Eduardo Chiarotti
2024-07-02 12:52:29 -03:00
parent 4da587196e
commit d000a73245
2 changed files with 13 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ pip install 'crewai[tools]'
Remember that when using this tool, the code must be generated by the Agent itself. The code must be a Python3 code. And it will take some time for the first time to run because it needs to build the Docker image. Remember that when using this tool, the code must be generated by the Agent itself. The code must be a Python3 code. And it will take some time for the first time to run because it needs to build the Docker image.
```python ```python
from crewai import Agent
from crewai_tools import CodeInterpreterTool from crewai_tools import CodeInterpreterTool
Agent( Agent(
@@ -27,3 +28,14 @@ Agent(
tools=[CodeInterpreterTool()], tools=[CodeInterpreterTool()],
) )
``` ```
We also provide a simple way to use it directly from the Agent.
```python
from crewai import Agent
agent = Agent(
...
allow_code_execution=True,
)
```

View File

@@ -149,6 +149,7 @@ nav:
- Google Serper Search: 'tools/SerperDevTool.md' - Google Serper Search: 'tools/SerperDevTool.md'
- Browserbase Web Loader: 'tools/BrowserbaseLoadTool.md' - Browserbase Web Loader: 'tools/BrowserbaseLoadTool.md'
- Composio Tools: 'tools/ComposioTool.md' - Composio Tools: 'tools/ComposioTool.md'
- Code Interpreter Tools: 'tools/CodeInterpreterTool.md'
- Scrape Website: 'tools/ScrapeWebsiteTool.md' - Scrape Website: 'tools/ScrapeWebsiteTool.md'
- Directory Read: 'tools/DirectoryReadTool.md' - Directory Read: 'tools/DirectoryReadTool.md'
- Exa Serch Web Loader: 'tools/EXASearchTool.md' - Exa Serch Web Loader: 'tools/EXASearchTool.md'