Policy JSON
What It Does
- Counts consecutive failures to the LLM provider (timeouts, 5xx errors, rate limits)
- Opens the circuit after 5 failures — all subsequent requests are immediately denied without calling the provider
- Resets after 30 seconds into a half-open state, allowing 1 test request through
- Closes the circuit if the test request succeeds; re-opens if it fails
- Prevents wasted API calls and latency during provider outages
Example
6th consecutive request to a failing provider: Decision object:Install
Customize
For high-traffic agents, lower
failure_threshold to 3 to trip faster. For batch processing agents where occasional failures are expected, raise it to 10.Related
- Retry Budget — 3 — Handle transient failures before the circuit trips
- Fallback Chain — Route to alternative providers when the circuit opens
- Financial Advisor Starter — Includes circuit breaker configuration
- TealCircuit Documentation — Full API reference

