コンテンツにスキップ

RetryPolicyContext

このコンテンツはまだ日本語訳がありません。

type RetryPolicyContext = object;
attempt: number;

The 1-based number of the failed attempt.


error: unknown;

The error thrown by the failed model attempt.


maxRetries: number;

The configured number of retries allowed after the initial attempt.


normalized: ModelRetryNormalizedError;

Generic normalized facts extracted from the error and provider advice.


optional providerAdvice: ModelRetryAdvice;

Optional provider guidance for the failure.


stream: boolean;

Whether the failed request was streaming.