pub struct Tool {
pub definition: MCPTool,
pub handler: Box<dyn ToolHandler + Send + Sync>,
pub metadata: ToolMetadata,
}
Expand description
MCP tool implementation
Fields§
§definition: MCPTool
Tool definition
handler: Box<dyn ToolHandler + Send + Sync>
Tool handler function
metadata: ToolMetadata
Tool metadata
Implementations§
Auto Trait Implementations§
impl Freeze for Tool
impl !RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl !UnwindSafe for Tool
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