pub struct ToolDef {
pub name: String,
pub description: String,
pub parameters: Value,
}Expand description
A tool definition ready for LLM API submission.
Fields§
§name: StringFunction name (e.g. “analysis_operation”).
description: StringHuman-readable description.
parameters: ValueJSON Schema for parameters (inlined, no $ref).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolDef
impl RefUnwindSafe for ToolDef
impl Send for ToolDef
impl Sync for ToolDef
impl Unpin for ToolDef
impl UnsafeUnpin for ToolDef
impl UnwindSafe for ToolDef
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