pub struct RetryProviderConfig {
pub max_retries: u32,
pub base_delay_ms: u64,
pub max_delay_ms: u64,
}Expand description
Retry configuration for transient LLM API failures (429, 500, 502, 503, 529).
Fields§
§max_retries: u32Maximum retry attempts (default: 3).
base_delay_ms: u64Base delay in milliseconds for exponential backoff (default: 500).
max_delay_ms: u64Maximum delay cap in milliseconds (default: 30000).
Trait Implementations§
Source§impl Debug for RetryProviderConfig
impl Debug for RetryProviderConfig
Source§impl<'de> Deserialize<'de> for RetryProviderConfig
impl<'de> Deserialize<'de> for RetryProviderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RetryProviderConfig> for RetryConfig
impl From<&RetryProviderConfig> for RetryConfig
Source§fn from(r: &RetryProviderConfig) -> Self
fn from(r: &RetryProviderConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RetryProviderConfig
impl RefUnwindSafe for RetryProviderConfig
impl Send for RetryProviderConfig
impl Sync for RetryProviderConfig
impl Unpin for RetryProviderConfig
impl UnsafeUnpin for RetryProviderConfig
impl UnwindSafe for RetryProviderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more