pub struct Tool {
pub description: String,
pub instructions: Option<String>,
pub name: String,
pub namespaced_name: Option<String>,
pub parameters: Option<HashMap<String, Value>>,
}Expand description
Schema for the Tool type.
Fields§
§description: StringDescription of what the tool does
instructions: Option<String>Optional instructions for how to use this tool effectively
name: StringTool identifier (e.g., “bash”, “grep”, “str_replace_editor”)
namespaced_name: Option<String>Optional namespaced name for declarative filtering (e.g., “playwright/navigate” for MCP tools)
parameters: Option<HashMap<String, Value>>JSON Schema for the tool’s input parameters
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze 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