RetryPolicyContext
このコンテンツはまだ日本語訳がありません。
type RetryPolicyContext = object;Properties
Section titled “Properties”attempt
Section titled “attempt”attempt: number;The 1-based number of the failed attempt.
error: unknown;The error thrown by the failed model attempt.
maxRetries
Section titled “maxRetries”maxRetries: number;The configured number of retries allowed after the initial attempt.
normalized
Section titled “normalized”normalized: ModelRetryNormalizedError;Generic normalized facts extracted from the error and provider advice.
providerAdvice?
Section titled “providerAdvice?”optional providerAdvice: ModelRetryAdvice;Optional provider guidance for the failure.
stream
Section titled “stream”stream: boolean;Whether the failed request was streaming.