pub struct FunctionObject {
pub description: Option<String>,
pub name: String,
pub parameters: Option<FunctionParameters>,
pub strict: Option<bool>,
}
Fields§
§description: Option<String>
A description of what the function does, used by the model to choose when and how to call the function.
name: String
The name of the function to be called.
parameters: Option<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 moreSource§impl Debug for FunctionObject
impl Debug for FunctionObject
Source§impl Default for FunctionObject
impl Default for FunctionObject
Source§fn default() -> FunctionObject
fn default() -> FunctionObject
Returns the “default value” for a type. Read more
Auto 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