pub enum ToolFailure {
Denied,
Cancelled,
InvalidArguments,
Unavailable,
Limit,
Failed,
UnknownTool,
}Expand description
Why a tool call failed. The model reads the call’s output either way; this tells the session’s clients what happened without reading the text.
Variants§
Denied
The approval policy or the user refused the call.
Cancelled
The call was cancelled while it ran.
InvalidArguments
The call’s arguments were refused, so nothing ran.
The tool, or the agent it runs, could not be used: missing, signed out, or its provider unreachable. Another agent might succeed.
Limit
A configured size, count, depth, or time limit stopped the call.
Failed
The call ran and failed.
UnknownTool
The model named a tool the session does not have.
Trait Implementations§
Source§impl Clone for ToolFailure
impl Clone for ToolFailure
impl Copy for ToolFailure
Source§impl Debug for ToolFailure
impl Debug for ToolFailure
impl Eq for ToolFailure
Source§impl Hash for ToolFailure
impl Hash for ToolFailure
Source§impl PartialEq for ToolFailure
impl PartialEq for ToolFailure
impl StructuralPartialEq for ToolFailure
Auto Trait Implementations§
impl Freeze for ToolFailure
impl RefUnwindSafe for ToolFailure
impl Send for ToolFailure
impl Sync for ToolFailure
impl Unpin for ToolFailure
impl UnsafeUnpin for ToolFailure
impl UnwindSafe for ToolFailure
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