Table of Contents

Method OnCircuitStateChange

Namespace
LMKit.Agents.Resilience
Assembly
LM-Kit.NET.dll

OnCircuitStateChange(Action<CircuitState, CircuitState>)

Sets a callback for circuit breaker state changes.

public ResilientAgentExecutor OnCircuitStateChange(Action<CircuitState, CircuitState> onStateChange)

Parameters

onStateChange Action<CircuitState, CircuitState>

Callback with old and new state.

Returns

ResilientAgentExecutor

This executor for method chaining.