pub struct McpToolDef {
pub name: String,
pub description: String,
pub input_schema: Value,
pub handler: VmClosure,
}Expand description
A tool extracted from a Harn tool_registry, ready to serve over MCP.
Fields§
§name: String§description: String§input_schema: Value§handler: VmClosureAuto Trait Implementations§
impl Freeze for McpToolDef
impl !RefUnwindSafe for McpToolDef
impl !Send for McpToolDef
impl !Sync for McpToolDef
impl Unpin for McpToolDef
impl UnsafeUnpin for McpToolDef
impl !UnwindSafe for McpToolDef
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