pub struct Tool {
pub name: &'static str,
pub description: Cow<'static, str>,
pub schema: Map<String, Value>,
pub hints: Hints,
}Expand description
One tool’s protocol-neutral wire contract, shared by MCP and Chat.
Fields§
§name: &'static str§description: Cow<'static, str>§schema: Map<String, Value>§hints: HintsAuto Trait Implementations§
impl Forget for Tool
impl Freeze for Tool
impl Move for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin 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