pub struct ToolSpec {
pub name: &'static str,
pub description: String,
pub schema: Value,
}Expand description
One tool: name, description, input schema.
Fields§
§name: &'static strThe tool’s name.
description: StringWhat it does, for the model.
schema: ValueIts input’s JSON Schema.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ToolSpec
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