pub struct FunctionObjectArgs { /* private fields */ }Expand description
Builder for FunctionObject.
Implementations§
Source§impl FunctionObjectArgs
impl FunctionObjectArgs
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn parameters<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn strict<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn defer_loading<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn defer_loading<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Passed to the chat template; discovery and tool execution remain external.
Sourcepub fn build(&self) -> Result<FunctionObject, OpenAIError>
pub fn build(&self) -> Result<FunctionObject, OpenAIError>
Trait Implementations§
Source§impl Clone for FunctionObjectArgs
impl Clone for FunctionObjectArgs
Source§impl Debug for FunctionObjectArgs
impl Debug for FunctionObjectArgs
Auto Trait Implementations§
impl Freeze for FunctionObjectArgs
impl RefUnwindSafe for FunctionObjectArgs
impl Send for FunctionObjectArgs
impl Sync for FunctionObjectArgs
impl Unpin for FunctionObjectArgs
impl UnsafeUnpin for FunctionObjectArgs
impl UnwindSafe for FunctionObjectArgs
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