mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
docs: Update training feature/code interpreter docs (#852)
* docs: remove training docs from README * docs: add CodeinterpreterTool to docs and update docs * docs: fix name of tool
This commit is contained in:
committed by
GitHub
parent
6b9a1d4040
commit
c81146505a
@@ -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.
|
||||
|
||||
```python
|
||||
from crewai import Agent
|
||||
from crewai_tools import CodeInterpreterTool
|
||||
|
||||
Agent(
|
||||
@@ -27,3 +28,14 @@ Agent(
|
||||
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,
|
||||
)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user