Skip to main content

Retryable

Trait Retryable 

Source
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§

Source

fn retry_classification(&self) -> RetryClassification

Decide whether this error should retry, and after how long.

Implementors§