pub enum ToolChoiceOptions {
None,
Auto,
Required,
}
Expand description
Controls which (if any) tool is called by the model.
none
means the model will not call any tool and instead generates a message.
auto
means the model can pick between generating a message or calling one or
more tools.
required
means the model must call one or more tools.
Variants§
Trait Implementations§
Source§impl Clone for ToolChoiceOptions
impl Clone for ToolChoiceOptions
Source§fn clone(&self) -> ToolChoiceOptions
fn clone(&self) -> ToolChoiceOptions
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 ToolChoiceOptions
impl Debug for ToolChoiceOptions
Source§impl<'de> Deserialize<'de> for ToolChoiceOptions
impl<'de> Deserialize<'de> for ToolChoiceOptions
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 ToolChoiceOptions
impl PartialEq for ToolChoiceOptions
Source§impl Serialize for ToolChoiceOptions
impl Serialize for ToolChoiceOptions
impl Copy for ToolChoiceOptions
impl StructuralPartialEq for ToolChoiceOptions
Auto Trait Implementations§
impl Freeze for ToolChoiceOptions
impl RefUnwindSafe for ToolChoiceOptions
impl Send for ToolChoiceOptions
impl Sync for ToolChoiceOptions
impl Unpin for ToolChoiceOptions
impl UnwindSafe for ToolChoiceOptions
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