FailoverConfig
Defined in the failover module.Rust AI Agent SDK Configuration for failover behavior.
Fields
| Name | Type | Description |
|---|---|---|
max_retries | u32 | Maximum retry attempts per request |
retry_delay | f64 | Base delay between retries (seconds) |
exponential_backoff | bool | Whether to use exponential backoff |
max_retry_delay | f64 | Maximum retry delay (seconds) |
cooldown_on_rate_limit | f64 | Cooldown duration for rate limits (seconds) |
cooldown_on_error | f64 | Cooldown duration for errors (seconds) |
rotate_on_success | bool | Whether to rotate profiles on success |
Methods
new
max_retries
| Name | Type |
|---|---|
retries | u32 |
retry_delay
| Name | Type |
|---|---|
delay | f64 |
exponential_backoff
| Name | Type |
|---|---|
enabled | bool |
max_retry_delay
| Name | Type |
|---|---|
delay | f64 |
cooldown_on_rate_limit
| Name | Type |
|---|---|
seconds | f64 |
cooldown_on_error
| Name | Type |
|---|---|
seconds | f64 |
Source
View on GitHub
praisonai/src/failover/mod.rs at line 211
