Table of Contents

Method HandleException

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

HandleException(Func<Exception, bool>)

Sets a predicate to determine which exceptions should trigger fallback.

public FallbackAgentExecutor HandleException(Func<Exception, bool> shouldFallback)

Parameters

shouldFallback Func<Exception, bool>

Predicate returning true for exceptions that should fallback.

Returns

FallbackAgentExecutor

This executor for method chaining.