pub struct LlmCallError {
pub message: String,
pub retryable: bool,
pub raw: Option<String>,
pub code: Option<String>,
pub terminal_reason: LlmTerminalReason,
pub request_body: Option<String>,
}Expand description
Error details from a failed LLM call.
Fields§
§message: String§retryable: bool§raw: Option<String>§code: Option<String>§terminal_reason: LlmTerminalReason§request_body: Option<String>Trait Implementations§
Source§impl Clone for LlmCallError
impl Clone for LlmCallError
Source§fn clone(&self) -> LlmCallError
fn clone(&self) -> LlmCallError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LlmCallError
impl Debug for LlmCallError
Source§impl<'de> Deserialize<'de> for LlmCallError
impl<'de> Deserialize<'de> for LlmCallError
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 LlmCallError
impl RefUnwindSafe for LlmCallError
impl Send for LlmCallError
impl Sync for LlmCallError
impl Unpin for LlmCallError
impl UnsafeUnpin for LlmCallError
impl UnwindSafe for LlmCallError
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