pub enum ResponsePropertiesToolChoice {
ToolChoiceOptions(ToolChoiceOptions),
ToolChoiceTypes(ToolChoiceTypes),
ToolChoiceFunction(ToolChoiceFunction),
}
Expand description
How the model should select which tool (or tools) to use when generating
a response. See the tools
parameter to see how to specify which tools
the model can call.
Variants§
ToolChoiceOptions(ToolChoiceOptions)
ToolChoiceTypes(ToolChoiceTypes)
ToolChoiceFunction(ToolChoiceFunction)
Trait Implementations§
Source§impl Clone for ResponsePropertiesToolChoice
impl Clone for ResponsePropertiesToolChoice
Source§fn clone(&self) -> ResponsePropertiesToolChoice
fn clone(&self) -> ResponsePropertiesToolChoice
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 ResponsePropertiesToolChoice
impl Debug for ResponsePropertiesToolChoice
Source§impl<'de> Deserialize<'de> for ResponsePropertiesToolChoice
impl<'de> Deserialize<'de> for ResponsePropertiesToolChoice
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
Source§impl PartialEq for ResponsePropertiesToolChoice
impl PartialEq for ResponsePropertiesToolChoice
Source§fn eq(&self, other: &ResponsePropertiesToolChoice) -> bool
fn eq(&self, other: &ResponsePropertiesToolChoice) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ResponsePropertiesToolChoice
Auto Trait Implementations§
impl Freeze for ResponsePropertiesToolChoice
impl RefUnwindSafe for ResponsePropertiesToolChoice
impl Send for ResponsePropertiesToolChoice
impl Sync for ResponsePropertiesToolChoice
impl Unpin for ResponsePropertiesToolChoice
impl UnwindSafe for ResponsePropertiesToolChoice
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