Learn how to enable your CrewAI Agents to write and execute code, and explore advanced features for enhanced functionality.
allow_code_execution
parameter to True
when creating the agent.
Here’s an example:
allow_code_execution
parameter defaults to False
.max_retry_limit
parameter, which defaults to 2, controls the maximum number of retries for a task.
crewai_tools
package. If not installed, the agent will log an info message:
“Coding tools not available. Install crewai_tools.”
Task Analysis
Code Formulation
Code Execution
CodeInterpreterTool
).Result Interpretation
coding_agent
can write and execute Python code to perform data analysis tasks.