pub struct ToolCallError {
pub tool: Option<String>,
pub args: Option<String>,
pub code: i32,
}Expand description
MCP tool call error details.
Fields§
§tool: Option<String>Tool called by the model (None if no tool was called).
args: Option<String>Arguments passed to the tool (None if no tool was called).
code: i32MCP error code (e.g. -32602 for invalid params).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolCallError
impl RefUnwindSafe for ToolCallError
impl Send for ToolCallError
impl Sync for ToolCallError
impl Unpin for ToolCallError
impl UnsafeUnpin for ToolCallError
impl UnwindSafe for ToolCallError
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