pub trait Retryable {
// Required method
fn retry_classification(&self) -> RetryClassification;
}Expand description
Adapter-side classification of an error as retryable or not.
Implemented by each provider’s error type (e.g. AnthropicError,
AzureOpenAIError) so RetryingModel stays provider-agnostic.
Required Methods§
Sourcefn retry_classification(&self) -> RetryClassification
fn retry_classification(&self) -> RetryClassification
Decide whether this error should retry, and after how long.