pub struct NamespaceToolParamArgs { /* private fields */ }Available on crate feature
response-types only.Expand description
Builder for NamespaceToolParam.
Implementations§
Source§impl NamespaceToolParamArgs
impl NamespaceToolParamArgs
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 namespace name used in tool calls (for example, crm).
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 namespace shown to the model.
Sourcepub fn tools<VALUE: Into<Vec<NamespaceToolParamTool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn tools<VALUE: Into<Vec<NamespaceToolParamTool>>>( &mut self, value: VALUE, ) -> &mut Self
The function/custom tools available inside this namespace.
Sourcepub fn build(&self) -> Result<NamespaceToolParam, OpenAIError>
pub fn build(&self) -> Result<NamespaceToolParam, OpenAIError>
Trait Implementations§
Source§impl Clone for NamespaceToolParamArgs
impl Clone for NamespaceToolParamArgs
Source§fn clone(&self) -> NamespaceToolParamArgs
fn clone(&self) -> NamespaceToolParamArgs
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 NamespaceToolParamArgs
impl RefUnwindSafe for NamespaceToolParamArgs
impl Send for NamespaceToolParamArgs
impl Sync for NamespaceToolParamArgs
impl Unpin for NamespaceToolParamArgs
impl UnsafeUnpin for NamespaceToolParamArgs
impl UnwindSafe for NamespaceToolParamArgs
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