Class CircuitBreakerPolicy
- Namespace
- JD.AI.Core.Governance
- Assembly
- JD.AI.Core.dll
Configures tool loop detection and circuit breaker thresholds. When Hardened is true, circuit breakers cannot be reset by users.
public sealed class CircuitBreakerPolicy
- Inheritance
-
CircuitBreakerPolicy
- Inherited Members
Properties
CooldownSeconds
Seconds the circuit stays open before half-open probe.
public int CooldownSeconds { get; set; }
Property Value
Hardened
When true, circuit breakers cannot be disabled or reset by users.
public bool Hardened { get; set; }
Property Value
PingPongThreshold
Number of alternating A→B→A→B calls that constitutes a ping-pong loop.
public int PingPongThreshold { get; set; }
Property Value
RepetitionHardStopThreshold
Number of identical tool+args calls that trigger a hard stop.
public int RepetitionHardStopThreshold { get; set; }
Property Value
RepetitionWarningThreshold
Number of identical tool+args calls that trigger a warning.
public int RepetitionWarningThreshold { get; set; }
Property Value
WindowSize
Rolling window of recent calls to inspect.
public int WindowSize { get; set; }