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:
Eduardo Chiarotti
2024-07-02 13:00:37 -03:00
committed by GitHub
parent 6b9a1d4040
commit c81146505a
3 changed files with 13 additions and 40 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.
```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,
)
```