pub struct ToolSpec { /* private fields */ }Expand description
Stable metadata and JSON schemas for one capability tool.
Implementations§
Source§impl ToolSpec
impl ToolSpec
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Optional human-readable display name.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Model-facing tool description.
Sourcepub fn input_schema(&self) -> &Value
pub fn input_schema(&self) -> &Value
Generated JSON Schema for Handler::Input.
Sourcepub fn output_schema(&self) -> &Value
pub fn output_schema(&self) -> &Value
Generated JSON Schema for Handler::Output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolSpec
impl RefUnwindSafe for ToolSpec
impl Send for ToolSpec
impl Sync for ToolSpec
impl Unpin for ToolSpec
impl UnsafeUnpin for ToolSpec
impl UnwindSafe for ToolSpec
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