pub struct ToolSearchToolParamArgs { /* private fields */ }Available on crate feature
response-types only.Expand description
Builder for ToolSearchToolParam.
Implementations§
Source§impl ToolSearchToolParamArgs
impl ToolSearchToolParamArgs
Sourcepub fn execution<VALUE: Into<ToolSearchExecutionType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn execution<VALUE: Into<ToolSearchExecutionType>>( &mut self, value: VALUE, ) -> &mut Self
Whether tool search is executed by the server or by the client.
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Description shown to the model for a client-executed tool search tool.
Sourcepub fn parameters<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn parameters<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
Parameter schema for a client-executed tool search tool.
Sourcepub fn build(&self) -> Result<ToolSearchToolParam, OpenAIError>
pub fn build(&self) -> Result<ToolSearchToolParam, OpenAIError>
Trait Implementations§
Source§impl Clone for ToolSearchToolParamArgs
impl Clone for ToolSearchToolParamArgs
Source§fn clone(&self) -> ToolSearchToolParamArgs
fn clone(&self) -> ToolSearchToolParamArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolSearchToolParamArgs
impl RefUnwindSafe for ToolSearchToolParamArgs
impl Send for ToolSearchToolParamArgs
impl Sync for ToolSearchToolParamArgs
impl Unpin for ToolSearchToolParamArgs
impl UnsafeUnpin for ToolSearchToolParamArgs
impl UnwindSafe for ToolSearchToolParamArgs
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