Execution Config • Rust AI Agent SDK
ExecutionConfig: Execution configuration
ExecutionConfig
Defined in the config module.
Rust AI Agent SDK
Execution configuration
Fields
| Name | Type | Description |
|---|---|---|
max_iterations | usize | Maximum number of iterations |
timeout_secs | u64 | Timeout in seconds |
stream | bool | Enable streaming output |
Methods
new
fn new() -> SelfCreate a new execution config
max_iterations
fn max_iterations(mut self, max: usize) -> SelfSet max iterations
Parameters:
| Name | Type |
|---|---|
max | usize |
timeout
fn timeout(mut self, secs: u64) -> SelfSet timeout
Parameters:
| Name | Type |
|---|---|
secs | u64 |
no_stream
fn no_stream(mut self) -> SelfDisable streaming
Source
View on GitHubpraisonai/src/config.rs at line 170