Table of Contents

Method WithRetry

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

WithRetry(int, TimeSpan?, bool)

Configures retry behavior.

public ResilientAgentExecutor WithRetry(int maxRetries = 3, TimeSpan? initialDelay = null, bool useExponentialBackoff = true)

Parameters

maxRetries int

Maximum retry attempts.

initialDelay TimeSpan?

Initial delay between retries.

useExponentialBackoff bool

Whether to use exponential backoff.

Returns

ResilientAgentExecutor

This executor for method chaining.