RetryOptions
Namespace: Vercel.AI.ProviderUtils
public sealed class RetryOptionsOptions for ExponentialBackoff.
Inheritance: object
Properties
Section titled “Properties”BackoffFactor
Section titled “BackoffFactor”public double BackoffFactor { get; set; }Multiplier applied after each retry.
Value: double
GetDelayInMs
Section titled “GetDelayInMs”public Func<Exception, int, int>? GetDelayInMs { get; set; }Replaces the computed delay. The second argument is the current backoff delay.
Value: Func<Exception, int, int>
InitialDelayInMs
Section titled “InitialDelayInMs”public int InitialDelayInMs { get; set; }Delay before the first retry, in milliseconds.
Value: int
MaxRetries
Section titled “MaxRetries”public int MaxRetries { get; set; }Retries after the first attempt. 0 disables wrapping and retry.
Value: int
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product