pub enum ChatCompletionFunctionCall {
None,
Auto,
Function {
name: String,
},
}Variants§
None
The model does not call a function, and responds to the end-user.
Auto
The model can pick between an end-user or calling a function.
Function
Forces the model to call the specified function.
Trait Implementations§
Source§impl Clone for ChatCompletionFunctionCall
impl Clone for ChatCompletionFunctionCall
Source§fn clone(&self) -> ChatCompletionFunctionCall
fn clone(&self) -> ChatCompletionFunctionCall
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 moreSource§impl Debug for ChatCompletionFunctionCall
impl Debug for ChatCompletionFunctionCall
Source§impl<'de> Deserialize<'de> for ChatCompletionFunctionCall
impl<'de> Deserialize<'de> for ChatCompletionFunctionCall
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatCompletionFunctionCall, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatCompletionFunctionCall, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for ChatCompletionFunctionCall
impl From<&str> for ChatCompletionFunctionCall
Source§fn from(value: &str) -> ChatCompletionFunctionCall
fn from(value: &str) -> ChatCompletionFunctionCall
Converts to this type from the input type.
Source§impl Serialize for ChatCompletionFunctionCall
impl Serialize for ChatCompletionFunctionCall
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
impl StructuralPartialEq for ChatCompletionFunctionCall
Auto Trait Implementations§
impl Freeze for ChatCompletionFunctionCall
impl RefUnwindSafe for ChatCompletionFunctionCall
impl Send for ChatCompletionFunctionCall
impl Sync for ChatCompletionFunctionCall
impl Unpin for ChatCompletionFunctionCall
impl UnsafeUnpin for ChatCompletionFunctionCall
impl UnwindSafe for ChatCompletionFunctionCall
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