pub enum ToolChoice {
Auto,
None,
Required,
Specific {
function_names: Vec<String>,
},
}Variants§
Trait Implementations§
Source§impl Clone for ToolChoice
impl Clone for ToolChoice
Source§fn clone(&self) -> ToolChoice
fn clone(&self) -> ToolChoice
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolChoice
impl Debug for ToolChoice
Source§impl Default for ToolChoice
impl Default for ToolChoice
Source§fn default() -> ToolChoice
fn default() -> ToolChoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolChoice
impl<'de> Deserialize<'de> for ToolChoice
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolChoice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolChoice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolChoice
impl PartialEq for ToolChoice
Source§impl Serialize for ToolChoice
impl Serialize for ToolChoice
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<ToolChoice> for FunctionCallingMode
impl TryFrom<ToolChoice> for FunctionCallingMode
Source§type Error = CompletionError
type Error = CompletionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ToolChoice,
) -> Result<FunctionCallingMode, <FunctionCallingMode as TryFrom<ToolChoice>>::Error>
fn try_from( value: ToolChoice, ) -> Result<FunctionCallingMode, <FunctionCallingMode as TryFrom<ToolChoice>>::Error>
Performs the conversion.
Source§impl TryFrom<ToolChoice> for ToolChoice
impl TryFrom<ToolChoice> for ToolChoice
Source§type Error = CompletionError
type Error = CompletionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ToolChoice,
) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
fn try_from( value: ToolChoice, ) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
Performs the conversion.
Source§impl TryFrom<ToolChoice> for ToolChoice
impl TryFrom<ToolChoice> for ToolChoice
Source§type Error = CompletionError
type Error = CompletionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ToolChoice,
) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
fn try_from( value: ToolChoice, ) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
Performs the conversion.
Source§impl TryFrom<ToolChoice> for ToolChoice
impl TryFrom<ToolChoice> for ToolChoice
Source§type Error = CompletionError
type Error = CompletionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ToolChoice,
) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
fn try_from( value: ToolChoice, ) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
Performs the conversion.
Source§impl TryFrom<ToolChoice> for ToolChoice
impl TryFrom<ToolChoice> for ToolChoice
Source§type Error = CompletionError
type Error = CompletionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ToolChoice,
) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
fn try_from( value: ToolChoice, ) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
Performs the conversion.
Source§impl TryFrom<ToolChoice> for ToolChoice
impl TryFrom<ToolChoice> for ToolChoice
Source§type Error = CompletionError
type Error = CompletionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ToolChoice,
) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
fn try_from( value: ToolChoice, ) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
Performs the conversion.
Source§impl TryFrom<ToolChoice> for ToolChoice
impl TryFrom<ToolChoice> for ToolChoice
Source§type Error = CompletionError
type Error = CompletionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ToolChoice,
) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
fn try_from( value: ToolChoice, ) -> Result<ToolChoice, <ToolChoice as TryFrom<ToolChoice>>::Error>
Performs the conversion.
impl StructuralPartialEq for ToolChoice
Auto Trait Implementations§
impl Freeze for ToolChoice
impl RefUnwindSafe for ToolChoice
impl Send for ToolChoice
impl Sync for ToolChoice
impl Unpin for ToolChoice
impl UnwindSafe for ToolChoice
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)