MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_circuit_breaker

Method with_circuit_breaker

core/src/agent_api/session_options.rs:405–408  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 4

sessionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected