pub enum ToolCallbackError {
SecurityFailed(String),
ToolNotFound(String),
ExecutionFailed {
tool: String,
reason: String,
},
InvalidParams {
tool: String,
reason: String,
},
Timeout(String, u64),
ToolNotAllowed(String),
Internal(String),
}Expand description
Tool callback error
Variants§
SecurityFailed(String)
Security validation failed
ToolNotFound(String)
Tool not found
ExecutionFailed
Tool execution failed
InvalidParams
Invalid parameters
Timeout(String, u64)
Timeout
ToolNotAllowed(String)
Tool not allowed
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for ToolCallbackError
impl Debug for ToolCallbackError
Source§impl Display for ToolCallbackError
impl Display for ToolCallbackError
Source§impl Error for ToolCallbackError
impl Error for ToolCallbackError
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<ToolCallbackError> for CallbackError
impl From<ToolCallbackError> for CallbackError
Source§fn from(source: ToolCallbackError) -> Self
fn from(source: ToolCallbackError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolCallbackError
impl RefUnwindSafe for ToolCallbackError
impl Send for ToolCallbackError
impl Sync for ToolCallbackError
impl Unpin for ToolCallbackError
impl UnsafeUnpin for ToolCallbackError
impl UnwindSafe for ToolCallbackError
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