Circuit breakers
Autonomous Circuit Breakers
Detects repeated tool calls with identical arguments and trips a breaker in-flight. The span reroutes to a fallback instead of burning retries and tokens.
pulse.breaker({
maxRepeats: 3,
onLoop: (span) => span.terminate({
fallback: "small-model",
}),
});
// tool.search_orders(48213) x4
// -> loop detected, run terminated in 38ms

