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
maxRetriesintMaximum retry attempts.
initialDelayTimeSpan?Initial delay between retries.
useExponentialBackoffboolWhether to use exponential backoff.
Returns
- ResilientAgentExecutor
This executor for method chaining.