pub struct AssistantToolChoice {
pub type_: AssistantToolChoiceType,
pub function: Option<AssistantToolChoiceFunction>,
}Expand description
Specifies a tool the model should use.
Fields§
§type_: AssistantToolChoiceTypeThe type of the tool. If type is function, the function name must be set
function: Option<AssistantToolChoiceFunction>Trait Implementations§
Source§impl Clone for AssistantToolChoice
impl Clone for AssistantToolChoice
Source§fn clone(&self) -> AssistantToolChoice
fn clone(&self) -> AssistantToolChoice
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 moreSource§impl Debug for AssistantToolChoice
impl Debug for AssistantToolChoice
Source§impl<'de> Deserialize<'de> for AssistantToolChoice
impl<'de> Deserialize<'de> for AssistantToolChoice
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
Auto Trait Implementations§
impl Freeze for AssistantToolChoice
impl RefUnwindSafe for AssistantToolChoice
impl Send for AssistantToolChoice
impl Sync for AssistantToolChoice
impl Unpin for AssistantToolChoice
impl UnsafeUnpin for AssistantToolChoice
impl UnwindSafe for AssistantToolChoice
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