pub struct LlmError {
pub kind: LlmErrorKind,
pub message: String,
pub retry_attempts: u32,
pub retry_wait_ms: u64,
pub retry_handled: bool,
}Expand description
LLM provider error with a semantic kind attached by the driver.
Fields§
§kind: LlmErrorKind§message: String§retry_attempts: u32Retries already consumed below the turn loop.
retry_wait_ms: u64Backoff time already consumed below the turn loop.
retry_handled: boolWhether a lower provider layer already made the terminal retry decision.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LlmError
impl<'de> Deserialize<'de> for LlmError
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
Auto Trait Implementations§
impl Freeze for LlmError
impl RefUnwindSafe for LlmError
impl Send for LlmError
impl Sync for LlmError
impl Unpin for LlmError
impl UnsafeUnpin for LlmError
impl UnwindSafe for LlmError
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