pub struct ToolDef {
pub name: String,
pub description: String,
pub parameters_schema: Value,
pub handler: ToolHandler,
}Expand description
A tool definition to register with the SIGIL MCP server.
Fields§
§name: String§description: String§parameters_schema: Value§handler: ToolHandlerAuto Trait Implementations§
impl Freeze for ToolDef
impl !RefUnwindSafe for ToolDef
impl Send for ToolDef
impl Sync for ToolDef
impl Unpin for ToolDef
impl UnsafeUnpin for ToolDef
impl !UnwindSafe for ToolDef
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