pub enum CreateChatCompletionRequestFunctionCall {
CreateChatCompletionRequestFunctionCallVariant0(CreateChatCompletionRequestFunctionCallVariant0),
ChatCompletionFunctionCallOption(ChatCompletionFunctionCallOption),
}๐Deprecated
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ยง
CreateChatCompletionRequestFunctionCallVariant0(CreateChatCompletionRequestFunctionCallVariant0)
๐Deprecated
ChatCompletionFunctionCallOption(ChatCompletionFunctionCallOption)
๐Deprecated
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 (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<'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 From<ChatCompletionFunctionCallOption> for CreateChatCompletionRequestFunctionCall
impl From<ChatCompletionFunctionCallOption> for CreateChatCompletionRequestFunctionCall
Sourceยงfn from(value: ChatCompletionFunctionCallOption) -> Self
fn from(value: ChatCompletionFunctionCallOption) -> Self
Converts to this type from the input type.
Sourceยงimpl From<CreateChatCompletionRequestFunctionCallVariant0> for CreateChatCompletionRequestFunctionCall
impl From<CreateChatCompletionRequestFunctionCallVariant0> for CreateChatCompletionRequestFunctionCall
Sourceยงfn from(value: CreateChatCompletionRequestFunctionCallVariant0) -> Self
fn from(value: CreateChatCompletionRequestFunctionCallVariant0) -> Self
Converts to this type from the input type.
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
Sourceยงimpl TryFrom<CreateChatCompletionRequestFunctionCall> for CreateChatCompletionRequestFunctionCallVariant0
impl TryFrom<CreateChatCompletionRequestFunctionCall> for CreateChatCompletionRequestFunctionCallVariant0
Sourceยงfn try_from(
value: CreateChatCompletionRequestFunctionCall,
) -> Result<Self, Self::Error>
fn try_from( value: CreateChatCompletionRequestFunctionCall, ) -> Result<Self, Self::Error>
ยงErrors
Returns the original enum value if it does not match the
#variant_ident variant.
Sourceยงtype Error = CreateChatCompletionRequestFunctionCall
type Error = CreateChatCompletionRequestFunctionCall
The type returned in the event of a conversion error.
Sourceยงimpl TryFrom<CreateChatCompletionRequestFunctionCall> for ChatCompletionFunctionCallOption
impl TryFrom<CreateChatCompletionRequestFunctionCall> for ChatCompletionFunctionCallOption
Sourceยงfn try_from(
value: CreateChatCompletionRequestFunctionCall,
) -> Result<Self, Self::Error>
fn try_from( value: CreateChatCompletionRequestFunctionCall, ) -> Result<Self, Self::Error>
ยงErrors
Returns the original enum value if it does not match the
#variant_ident variant.
Sourceยงtype Error = CreateChatCompletionRequestFunctionCall
type Error = CreateChatCompletionRequestFunctionCall
The type returned in the event of a conversion error.
Auto Trait Implementationsยง
impl Freeze for CreateChatCompletionRequestFunctionCall
impl RefUnwindSafe for CreateChatCompletionRequestFunctionCall
impl Send for CreateChatCompletionRequestFunctionCall
impl Sync for CreateChatCompletionRequestFunctionCall
impl Unpin for CreateChatCompletionRequestFunctionCall
impl UnsafeUnpin 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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.