- Retry with exponential backoff — repeats a failed request against the same provider with growing delays.
- Circuit breaker — short-circuits calls to a provider that has been failing repeatedly, then probes once the timeout elapses.
Defaults
The defaults are tuned to be safe for most deployments. Override only what you need.Environment Variables
These set the global defaults that apply to every provider unless overridden in YAML.Retry
Circuit Breaker
YAML
The same fields are available under the globalresilience: block, and can
be overridden per provider:
resilience: block are
overridden. Everything else inherits from the global section, which in turn
inherits from the built-in defaults.
Per-provider tuning must come from YAML. Environment variables set
global defaults only —
RETRY_MAX_RETRIES cannot target a single provider.
See config.yaml gotchas.Worked example
Given the YAML above, the effective per-provider settings are:anthropic and ollama inherit every field they did not explicitly override.