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 copy 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 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<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 From<&str> for ChatCompletionFunctionCall
impl From<&str> for ChatCompletionFunctionCall
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 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