Skip to content

RetryOptions

Namespace: Vercel.AI.ProviderUtils

public sealed class RetryOptions

Options for ExponentialBackoff.

Inheritance: object

View source

public double BackoffFactor { get; set; }

Multiplier applied after each retry.

Value: double

View source

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>

View source

public int InitialDelayInMs { get; set; }

Delay before the first retry, in milliseconds.

Value: int

View source

public int MaxRetries { get; set; }

Retries after the first attempt. 0 disables wrapping and retry.

Value: int

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product