What is a circuit breaker in an artificial intelligence system?

Definition

A circuit breaker watches calls to a service or tool. After enough failures, it opens and rejects new calls for a cooling period, preventing an agent workflow from repeatedly stressing a dependency that is already unhealthy.

The control later permits a limited probe to test recovery before normal traffic resumes. Circuit breakers work with timeouts, retry limits and fallback behavior, and their state should be visible so operators can distinguish protected failure from unexplained inactivity.

Frequently asked questions

What problem does a circuit breaker prevent?

It prevents repeated calls from worsening a dependency failure and consuming unnecessary time, capacity or money.

How does a circuit breaker close again?

After a cooling period it allows limited test calls, then restores normal traffic when the dependency appears healthy.

Videos explaining circuit breaker