pub struct ChatTool {
pub name: String,
pub description: String,
pub parameters: Option<Value>,
}Expand description
Defines a function the model can call.
Fields§
§name: StringFunction name.
description: StringExplains what the function does.
parameters: Option<Value>JSON Schema for the function’s arguments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChatTool
impl RefUnwindSafe for ChatTool
impl Send for ChatTool
impl Sync for ChatTool
impl Unpin for ChatTool
impl UnsafeUnpin for ChatTool
impl UnwindSafe for ChatTool
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