crewai_edit_crew_py
Modify a CrewAI agent's configuration by adding tools, LLM models, or custom parameters directly in the crew.py file.
Instructions
Edit the crew.py file to add tools, LLM, or other parameters to a specific agent.
This tool modifies the agent method in crew.py to include custom tools, LLM configuration, or other agent parameters that can't be set via YAML alone.
Args: project_name: Name of the project agent_name: Name of the agent method to modify (e.g., 'researcher') tools: List of tool import strings (e.g., ['SerperDevTool()', 'WebsiteSearchTool()']) llm: LLM model string (e.g., 'gpt-4o', 'claude-3-5-sonnet') function_calling_llm: Function calling LLM model string other_params: Additional parameters to pass to the Agent constructor
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | ||
| agent_name | Yes | ||
| tools | No | ||
| llm | No | ||
| function_calling_llm | No | ||
| other_params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |