Quick Start
Configuration
| AgentBuilder Method | Type | Default | Description |
|---|---|---|---|
.max_iterations(n) | usize | 10 | Maximum tool call loops |
.verbose(bool) | bool | false | Enable verbose output |
.stream(bool) | bool | true | Enable streaming |
Best Practices
Set reasonable iteration limits
Set reasonable iteration limits
5-10 iterations handles most tasks. Higher values risk infinite loops.
Use timeouts for safety
Use timeouts for safety
Always set timeouts to prevent stuck agents from running indefinitely.
Related
Agent
Agent configuration
Autonomy
Autonomy levels

