Quick Start
1
Preset Mode
2
Custom Configuration
Execution Presets
| Preset | max_iter | Use Case |
|---|---|---|
fast | 10 | Quick responses |
balanced | 20 | Standard tasks |
thorough | 50 | Complex analysis |
unlimited | None | Long-running jobs |
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
max_iter | int | 20 | Maximum loop iterations |
max_rpm | int | None | Rate limit (requests/minute) |
max_execution_time | int | None | Timeout in seconds |
max_retry_limit | int | 2 | Max retries on failure |
Iteration Limits
Prevent infinite loops:Time Limits
Prevent runaway execution:Rate Limiting
Control API request rate:- Respecting API rate limits
- Controlling costs
- Preventing abuse
Retry Behavior
Handle transient failures:Multi-Agent Execution
For multi-agent workflows:Combining Limits
Use multiple limits together:Best Practices
Set appropriate iteration limits
Set appropriate iteration limits
Too low = incomplete tasks. Too high = wasted resources. Start with defaults and adjust.
Use time limits for production
Use time limits for production
Always set
max_execution_time in production to prevent runaway agents.Rate limit external API calls
Rate limit external API calls
Use
max_rpm when agents call external APIs to respect rate limits.Enable retries for unreliable operations
Enable retries for unreliable operations
Set
max_retry_limit for operations that may fail transiently.
