pub enum CreateChatCompletionRequestFunctionCall {
None,
Auto,
ChatCompletionFunctionCallOption(ChatCompletionFunctionCallOption),
}
Expand description
Deprecated in favor of tool_choice
.
Controls which (if any) function is called by the model.
none
means the model will not call a function and instead generates a
message.
auto
means the model can pick between generating a message or calling a
function.
Specifying a particular function via {"name": "my_function"}
forces the
model to call that function.
none
is the default when no functions are present. auto
is the default
if functions are present.
Variants§
Trait Implementations§
Source§impl Clone for CreateChatCompletionRequestFunctionCall
impl Clone for CreateChatCompletionRequestFunctionCall
Source§fn clone(&self) -> CreateChatCompletionRequestFunctionCall
fn clone(&self) -> CreateChatCompletionRequestFunctionCall
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<'de> Deserialize<'de> for CreateChatCompletionRequestFunctionCall
impl<'de> Deserialize<'de> for CreateChatCompletionRequestFunctionCall
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 CreateChatCompletionRequestFunctionCall
impl PartialEq for CreateChatCompletionRequestFunctionCall
Source§fn eq(&self, other: &CreateChatCompletionRequestFunctionCall) -> bool
fn eq(&self, other: &CreateChatCompletionRequestFunctionCall) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateChatCompletionRequestFunctionCall
Auto Trait Implementations§
impl Freeze for CreateChatCompletionRequestFunctionCall
impl RefUnwindSafe for CreateChatCompletionRequestFunctionCall
impl Send for CreateChatCompletionRequestFunctionCall
impl Sync for CreateChatCompletionRequestFunctionCall
impl Unpin for CreateChatCompletionRequestFunctionCall
impl UnwindSafe for CreateChatCompletionRequestFunctionCall
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