Quick Start
Configuration Options
| Parameter | Type | Default | Description |
|---|---|---|---|
max_iter | int | 20 | Maximum tool call iterations |
max_rpm | int | None | None | Max requests per minute (rate limit) |
max_execution_time | int | None | None | Max execution time in seconds |
max_retry_limit | int | 2 | Max retries on failure |
Execution Presets
| Preset | max_iter | Description |
|---|---|---|
"fast" | 10 | Quick tasks, fewer iterations |
"balanced" | 20 | Default, balanced approach |
"thorough" | 50 | Complex tasks, more iterations |
"unlimited" | 1000 | Long-running tasks |
Common Patterns
Pattern 1: Rate-Limited Agent
Pattern 2: Time-Bounded Agent
Pattern 3: Resilient Agent
Best Practices
Set Iteration Limits
Set Iteration Limits
Always set
max_iter to prevent runaway agents consuming resources.Use Rate Limiting for APIs
Use Rate Limiting for APIs
Set
max_rpm when calling external APIs to avoid rate limit errors.Set Timeouts for Production
Set Timeouts for Production
Use
max_execution_time in production to prevent hung processes.
