pub struct FunctionObject {
pub description: String,
pub name: String,
pub parameters: FunctionParameters,
pub strict: Option<bool>,
}Fields§
§description: StringA description of what the function does, used by the model to choose when and how to call the function.
name: StringThe name of the function to be called.
parameters: FunctionParameters§strict: Option<bool>Whether to enable strict schema adherence when generating the function call.
Trait Implementations§
Source§impl Clone for FunctionObject
impl Clone for FunctionObject
Source§fn clone(&self) -> FunctionObject
fn clone(&self) -> FunctionObject
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 FunctionObject
impl RefUnwindSafe for FunctionObject
impl Send for FunctionObject
impl Sync for FunctionObject
impl Unpin for FunctionObject
impl UnwindSafe for FunctionObject
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