pub enum ChatCompletionToolChoiceOptionString {
None,
Auto,
Required,
}Expand description
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.
JSON schema
{
"description": "`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.\n",
"type": "string",
"enum": [
"none",
"auto",
"required"
]
}Variants§
Trait Implementations§
Source§impl Clone for ChatCompletionToolChoiceOptionString
impl Clone for ChatCompletionToolChoiceOptionString
Source§fn clone(&self) -> ChatCompletionToolChoiceOptionString
fn clone(&self) -> ChatCompletionToolChoiceOptionString
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 moreimpl Copy for ChatCompletionToolChoiceOptionString
Source§impl<'de> Deserialize<'de> for ChatCompletionToolChoiceOptionString
impl<'de> Deserialize<'de> for ChatCompletionToolChoiceOptionString
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 Eq for ChatCompletionToolChoiceOptionString
Source§impl From<ChatCompletionToolChoiceOptionString> for ChatCompletionToolChoiceOption
impl From<ChatCompletionToolChoiceOptionString> for ChatCompletionToolChoiceOption
Source§fn from(value: ChatCompletionToolChoiceOptionString) -> Self
fn from(value: ChatCompletionToolChoiceOptionString) -> Self
Converts to this type from the input type.
Source§impl Ord for ChatCompletionToolChoiceOptionString
impl Ord for ChatCompletionToolChoiceOptionString
Source§fn cmp(&self, other: &ChatCompletionToolChoiceOptionString) -> Ordering
fn cmp(&self, other: &ChatCompletionToolChoiceOptionString) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChatCompletionToolChoiceOptionString
impl PartialEq for ChatCompletionToolChoiceOptionString
Source§fn eq(&self, other: &ChatCompletionToolChoiceOptionString) -> bool
fn eq(&self, other: &ChatCompletionToolChoiceOptionString) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ChatCompletionToolChoiceOptionString
impl PartialOrd for ChatCompletionToolChoiceOptionString
impl StructuralPartialEq for ChatCompletionToolChoiceOptionString
Source§impl TryFrom<&String> for ChatCompletionToolChoiceOptionString
impl TryFrom<&String> for ChatCompletionToolChoiceOptionString
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ChatCompletionToolChoiceOptionString
impl TryFrom<&str> for ChatCompletionToolChoiceOptionString
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ChatCompletionToolChoiceOptionString
impl TryFrom<String> for ChatCompletionToolChoiceOptionString
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ChatCompletionToolChoiceOptionString
impl RefUnwindSafe for ChatCompletionToolChoiceOptionString
impl Send for ChatCompletionToolChoiceOptionString
impl Sync for ChatCompletionToolChoiceOptionString
impl Unpin for ChatCompletionToolChoiceOptionString
impl UnsafeUnpin for ChatCompletionToolChoiceOptionString
impl UnwindSafe for ChatCompletionToolChoiceOptionString
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.