pub struct FunctionTool {
pub type: String,
pub name: String,
pub description: Option<FunctionTool_Description>,
pub parameters: FunctionTool_Parameters,
pub strict: FunctionTool_Strict,
}
Expand description
Defines a function in your own code the model can choose to call.
Fields§
§type: String
The type of the function tool.
name: String
The name of the function to call.
description: Option<FunctionTool_Description>
§parameters: FunctionTool_Parameters
§strict: FunctionTool_Strict
Trait Implementations§
Source§impl Clone for FunctionTool
impl Clone for FunctionTool
Source§fn clone(&self) -> FunctionTool
fn clone(&self) -> FunctionTool
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for FunctionTool
impl RefUnwindSafe for FunctionTool
impl Send for FunctionTool
impl Sync for FunctionTool
impl Unpin for FunctionTool
impl UnwindSafe for FunctionTool
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