crewai_train_crew
Train AI agents using human-in-the-loop feedback to optimize prompts and improve multi-agent system performance.
Instructions
Train the crew to improve performance.
Runs crewai train -n {iterations} -f {filename}.
Agent training provides human-in-the-loop feedback to optimize prompts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_name": "<project_name>"
},
"name": "crewai_train_crew"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | Project name | |
| iterations | No | Number of training iterations | |
| filename | No | Output file for trained weights | trained_agents_data.pkl |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |