pub struct LlmFailure {
pub error: ExternalError,
pub usage: Option<TokenUsage>,
}Expand description
Model-specific failure that can retain usage returned before output validation failed.
Fields§
§error: ExternalErrorStable provider-neutral failure.
usage: Option<TokenUsage>Usage already reported by the provider, when available.
Trait Implementations§
Source§impl Clone for LlmFailure
impl Clone for LlmFailure
Source§fn clone(&self) -> LlmFailure
fn clone(&self) -> LlmFailure
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 LlmFailure
impl Debug for LlmFailure
Source§impl Display for LlmFailure
impl Display for LlmFailure
impl Eq for LlmFailure
Source§impl Error for LlmFailure
impl Error for LlmFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ExternalError> for LlmFailure
impl From<ExternalError> for LlmFailure
Source§fn from(error: ExternalError) -> Self
fn from(error: ExternalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LlmFailure
impl PartialEq for LlmFailure
impl StructuralPartialEq for LlmFailure
Auto Trait Implementations§
impl Freeze for LlmFailure
impl RefUnwindSafe for LlmFailure
impl Send for LlmFailure
impl Sync for LlmFailure
impl Unpin for LlmFailure
impl UnsafeUnpin for LlmFailure
impl UnwindSafe for LlmFailure
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