pub struct Tool {
pub name: String,
pub description: String,
pub input_schema: String,
}Expand description
Tool definition for function calling.
Fields§
§name: StringName of the tool.
description: StringDescription of what the tool does.
input_schema: StringJSON Schema for the tool’s input parameters.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin 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