pub struct AssistantsNamedToolChoice {
pub type: AssistantToolType,
pub function: Option<FunctionName>,
}
Expand description
Specifies a tool the model should use. Use to force the model to call a specific tool.
Fields§
§type: AssistantToolType
The type of the tool. If type is function
, the function name must be set
function: Option<FunctionName>
Trait Implementations§
Source§impl Clone for AssistantsNamedToolChoice
impl Clone for AssistantsNamedToolChoice
Source§fn clone(&self) -> AssistantsNamedToolChoice
fn clone(&self) -> AssistantsNamedToolChoice
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 moreSource§impl Debug for AssistantsNamedToolChoice
impl Debug for AssistantsNamedToolChoice
Source§impl Default for AssistantsNamedToolChoice
impl Default for AssistantsNamedToolChoice
Source§fn default() -> AssistantsNamedToolChoice
fn default() -> AssistantsNamedToolChoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantsNamedToolChoice
impl<'de> Deserialize<'de> for AssistantsNamedToolChoice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AssistantsNamedToolChoice
Auto Trait Implementations§
impl Freeze for AssistantsNamedToolChoice
impl RefUnwindSafe for AssistantsNamedToolChoice
impl Send for AssistantsNamedToolChoice
impl Sync for AssistantsNamedToolChoice
impl Unpin for AssistantsNamedToolChoice
impl UnwindSafe for AssistantsNamedToolChoice
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