pub struct ToolFunction {
pub name: String,
pub description: String,
pub parameters: Parameters,
}Expand description
Tool function definition
Fields§
§name: StringFunction name
description: StringFunction description
parameters: ParametersJSON schema for function parameters
Trait Implementations§
Source§impl Clone for ToolFunction
impl Clone for ToolFunction
Source§fn clone(&self) -> ToolFunction
fn clone(&self) -> ToolFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolFunction
impl Debug for ToolFunction
Auto Trait Implementations§
impl Freeze for ToolFunction
impl RefUnwindSafe for ToolFunction
impl Send for ToolFunction
impl Sync for ToolFunction
impl Unpin for ToolFunction
impl UnwindSafe for ToolFunction
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