pub struct FunctionToolParamArgs { /* private fields */ }Available on crate feature
response-types only.Expand description
Builder for FunctionToolParam.
Implementations§
Source§impl FunctionToolParamArgs
impl FunctionToolParamArgs
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the function.
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A description of the function.
Sourcepub fn parameters<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn parameters<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
A JSON schema object describing the parameters of the function.
Sourcepub fn strict<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn strict<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to enforce strict parameter validation.
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
Whether this function should be deferred and discovered via tool search.
Sourcepub fn build(&self) -> Result<FunctionToolParam, OpenAIError>
pub fn build(&self) -> Result<FunctionToolParam, OpenAIError>
Trait Implementations§
Source§impl Clone for FunctionToolParamArgs
impl Clone for FunctionToolParamArgs
Source§fn clone(&self) -> FunctionToolParamArgs
fn clone(&self) -> FunctionToolParamArgs
Returns a duplicate 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 FunctionToolParamArgs
impl RefUnwindSafe for FunctionToolParamArgs
impl Send for FunctionToolParamArgs
impl Sync for FunctionToolParamArgs
impl Unpin for FunctionToolParamArgs
impl UnsafeUnpin for FunctionToolParamArgs
impl UnwindSafe for FunctionToolParamArgs
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