pub enum ToolError {
NotFound(String),
SchemaGenerationError(String, Error),
ArgumentParsingError(String, Error),
InvalidArguments(String),
ExecutionError(String),
OutputTypeMismatch(String),
}Expand description
Errors that can occur when working with tools
Variants§
NotFound(String)
Tool with the specified name was not found in the registry
SchemaGenerationError(String, Error)
Error generating JSON schema for tool
ArgumentParsingError(String, Error)
Error parsing arguments for tool
InvalidArguments(String)
Invalid arguments for tool
ExecutionError(String)
Tool execution encountered an error
OutputTypeMismatch(String)
Expected output type did not match actual output type
Trait Implementations§
Source§impl Error for ToolError
impl Error for ToolError
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()
Auto Trait Implementations§
impl Freeze for ToolError
impl !RefUnwindSafe for ToolError
impl Send for ToolError
impl Sync for ToolError
impl Unpin for ToolError
impl !UnwindSafe for ToolError
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