pub enum ErrorKind {
ToolCallFailed {
tool_name: String,
},
ToolNotFound,
ToolArgsInvalid,
ToolTimeout,
ModelOverloaded,
RateLimited,
Internal,
}Expand description
Classifies an AgentError into a broad category for recovery decisions.
Unlike AgentError which carries full context (messages, nested errors, etc.),
ErrorKind is a lightweight discriminant that lets RecoveryPolicy and other
decision-makers branch without pattern-matching on every AgentError variant.
Variants§
ToolCallFailed
A tool call failed during execution.
ToolNotFound
The requested tool was not found in the registry.
ToolArgsInvalid
Tool arguments were invalid.
ToolTimeout
Tool execution timed out.
ModelOverloaded
The model/LLM service is overloaded (e.g. 529, 503).
RateLimited
Rate limit was exceeded.
Internal
Catch-all for errors that don’t fit a specific category.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.