pub enum LlmErrorKind {
ContextLengthExceeded,
MalformedToolCall,
RateLimited,
StreamError,
Other,
}Expand description
Semantic category for an LlmError.
Variants§
ContextLengthExceeded
The prompt exceeds the model’s context window.
MalformedToolCall
The model produced a tool call that could not be parsed (malformed JSON, etc.).
RateLimited
The provider returned a rate-limit response that was not resolved by retries.
StreamError
The response stream failed or ended before the provider confirmed completion.
Other
Any other provider error that does not fit a specific category.
Implementations§
Trait Implementations§
Source§impl Clone for LlmErrorKind
impl Clone for LlmErrorKind
impl Copy for LlmErrorKind
Source§impl Debug for LlmErrorKind
impl Debug for LlmErrorKind
impl Eq for LlmErrorKind
Source§impl PartialEq for LlmErrorKind
impl PartialEq for LlmErrorKind
impl StructuralPartialEq for LlmErrorKind
Auto Trait Implementations§
impl Freeze for LlmErrorKind
impl RefUnwindSafe for LlmErrorKind
impl Send for LlmErrorKind
impl Sync for LlmErrorKind
impl Unpin for LlmErrorKind
impl UnsafeUnpin for LlmErrorKind
impl UnwindSafe for LlmErrorKind
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