#[non_exhaustive]pub enum LlmFailureReason {
RateLimited {
retry_after: Option<Duration>,
},
ContextExceeded {
max: u32,
requested: u32,
},
AuthError,
InvalidModel(String),
ProviderError(Value),
NetworkTimeout {
duration_ms: u64,
},
CallTimeout {
duration_ms: u64,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RateLimited
ContextExceeded
AuthError
InvalidModel(String)
ProviderError(Value)
NetworkTimeout
Provider/client-native network timeout (owned by client layer)
CallTimeout
Agent-loop hard call timeout (owned by agent loop policy)
Trait Implementations§
Source§impl Clone for LlmFailureReason
impl Clone for LlmFailureReason
Source§fn clone(&self) -> LlmFailureReason
fn clone(&self) -> LlmFailureReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LlmFailureReason
impl Debug for LlmFailureReason
Source§impl PartialEq for LlmFailureReason
impl PartialEq for LlmFailureReason
impl StructuralPartialEq for LlmFailureReason
Auto Trait Implementations§
impl Freeze for LlmFailureReason
impl RefUnwindSafe for LlmFailureReason
impl Send for LlmFailureReason
impl Sync for LlmFailureReason
impl Unpin for LlmFailureReason
impl UnsafeUnpin for LlmFailureReason
impl UnwindSafe for LlmFailureReason
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