Set the circuit-breaker threshold. In non-streaming mode, the agent retries transient LLM API failures up to this many times (with exponential backoff) before aborting. Default: 3 attempts.
(mut self, threshold: u32)
| 403 | /// to this many times (with exponential backoff) before aborting. |
| 404 | /// Default: 3 attempts. |
| 405 | pub fn with_circuit_breaker(mut self, threshold: u32) -> Self { |
| 406 | self.circuit_breaker_threshold = Some(threshold); |
| 407 | self |
| 408 | } |
| 409 | |
| 410 | /// Enable all resilience defaults with sensible values: |
| 411 | /// |
no outgoing calls
no test coverage detected