pub enum MessageToolChoice {
Auto,
Any,
Tool {
name: String,
},
}Expand description
Tool choice option for messages API.
Variants§
Auto
Allows the model to automatically decide whether to call the tool.
Any
Forces the model to use at least one tool, without specifying the tool.
Tool
Forces the model to use the named tool.
Trait Implementations§
Source§impl Clone for MessageToolChoice
impl Clone for MessageToolChoice
Source§fn clone(&self) -> MessageToolChoice
fn clone(&self) -> MessageToolChoice
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 MessageToolChoice
impl Debug for MessageToolChoice
Source§impl Default for MessageToolChoice
impl Default for MessageToolChoice
Source§fn default() -> MessageToolChoice
fn default() -> MessageToolChoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageToolChoice
impl<'de> Deserialize<'de> for MessageToolChoice
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 MessageToolChoice
impl PartialEq for MessageToolChoice
Source§impl Serialize for MessageToolChoice
impl Serialize for MessageToolChoice
impl StructuralPartialEq for MessageToolChoice
Auto Trait Implementations§
impl Freeze for MessageToolChoice
impl RefUnwindSafe for MessageToolChoice
impl Send for MessageToolChoice
impl Sync for MessageToolChoice
impl Unpin for MessageToolChoice
impl UnwindSafe for MessageToolChoice
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