mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
docs: add CodeinterpreterTool to docs and update docs
This commit is contained in:
@@ -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,
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user