pub struct Tool {
pub name: &'static str,
pub title: &'static str,
pub description: Cow<'static, str>,
pub schema: Map<String, Value>,
pub output_schema: Map<String, Value>,
pub hints: Hints,
}Expand description
One tool’s protocol-neutral wire contract, used for MCP discovery.
Fields§
§name: &'static str§title: &'static strThe name a host shows a person.
description: Cow<'static, str>§schema: Map<String, Value>§output_schema: Map<String, Value>The schema of a successful structured result; a failure carries {code, message}.
hints: HintsAuto Trait Implementations§
impl Forget for Tool
impl Freeze for Tool
impl Move for Tool
impl RefUnwindSafe for Toolwhere
String: RefUnwindSafe,
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Toolwhere
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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