Agent Configuration
Required Fields
| Field | Type | Description |
|---|---|---|
name | str | Unique agent identifier |
role | str | Agent’s role description |
goal | str | Primary objective or task |
backstory | str | Context that shapes behavior |
llm | LLM | LLM configuration object |
Optional Fields
| Field | Type | Default | Description |
|---|---|---|---|
tools | list | [] | List of tool functions |
max_retries | int | 1 | Number of retries for failed tasks |
max_iterations | int | 3 | Maximum reasoning loops |
max_tool_calls | int | 10 | Maximum tool calls per iteration |
timeout | int | 300 | Task timeout in seconds |
trace_enabled | bool | True | Enable execution tracing |
instructions | str | None | Custom instructions for behavior |
is_coordinator | bool | False | Enable delegation tools |
LLM Configuration
OpenAI
Gemini
Anthropic
Ollama
Example Configuration
Next Steps
- Tool Schema - Tool configuration schema
- Agent Configuration - Configuration guide
- Agent Authoring - Best practices