Table of Contents

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

int

Hardened

When true, circuit breakers cannot be disabled or reset by users.

public bool Hardened { get; set; }

Property Value

bool

PingPongThreshold

Number of alternating A→B→A→B calls that constitutes a ping-pong loop.

public int PingPongThreshold { get; set; }

Property Value

int

RepetitionHardStopThreshold

Number of identical tool+args calls that trigger a hard stop.

public int RepetitionHardStopThreshold { get; set; }

Property Value

int

RepetitionWarningThreshold

Number of identical tool+args calls that trigger a warning.

public int RepetitionWarningThreshold { get; set; }

Property Value

int

WindowSize

Rolling window of recent calls to inspect.

public int WindowSize { get; set; }

Property Value

int