Skip to content

PrepareRetries.Result

Namespace: Vercel.AI.Util

public sealed class PrepareRetries.Result

Result of Int32).

Inheritance: object

View source

Result(int, RetryWithExponentialBackoffRespectingRetryHeaders)

Section titled “Result(int, RetryWithExponentialBackoffRespectingRetryHeaders)”
public Result(int maxRetries, RetryWithExponentialBackoffRespectingRetryHeaders retry)

Creates the prepared retry settings.

Parameters

Name Type Description
maxRetries int
retry RetryWithExponentialBackoffRespectingRetryHeaders

View source

public int MaxRetries { get; }

Retry count after validation, or the default.

Value: int

View source

public RetryWithExponentialBackoffRespectingRetryHeaders Retry { get; }

Retry strategy bound to that count.

Value: RetryWithExponentialBackoffRespectingRetryHeaders

View source

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