pub struct ChatCompletionRequestAssistantMessageFunctionCall {
pub arguments: String,
pub name: String,
}
Expand description
Deprecated and replaced by tool_calls
. The name and arguments of a function that should be called, as generated by the model.
Fields§
§arguments: String
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
name: String
The name of the function to call.
Implementations§
Source§impl ChatCompletionRequestAssistantMessageFunctionCall
impl ChatCompletionRequestAssistantMessageFunctionCall
Sourcepub fn builder() -> ChatCompletionRequestAssistantMessageFunctionCallBuilder<((), ())>
pub fn builder() -> ChatCompletionRequestAssistantMessageFunctionCallBuilder<((), ())>
Create a builder for building ChatCompletionRequestAssistantMessageFunctionCall
.
On the builder, call .arguments(...)
, .name(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionRequestAssistantMessageFunctionCall
.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestAssistantMessageFunctionCall
impl Clone for ChatCompletionRequestAssistantMessageFunctionCall
Source§fn clone(&self) -> ChatCompletionRequestAssistantMessageFunctionCall
fn clone(&self) -> ChatCompletionRequestAssistantMessageFunctionCall
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 ChatCompletionRequestAssistantMessageFunctionCall
impl<'de> Deserialize<'de> for ChatCompletionRequestAssistantMessageFunctionCall
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 ChatCompletionRequestAssistantMessageFunctionCall
impl PartialEq for ChatCompletionRequestAssistantMessageFunctionCall
Source§fn eq(&self, other: &ChatCompletionRequestAssistantMessageFunctionCall) -> bool
fn eq(&self, other: &ChatCompletionRequestAssistantMessageFunctionCall) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionRequestAssistantMessageFunctionCall
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestAssistantMessageFunctionCall
impl RefUnwindSafe for ChatCompletionRequestAssistantMessageFunctionCall
impl Send for ChatCompletionRequestAssistantMessageFunctionCall
impl Sync for ChatCompletionRequestAssistantMessageFunctionCall
impl Unpin for ChatCompletionRequestAssistantMessageFunctionCall
impl UnwindSafe for ChatCompletionRequestAssistantMessageFunctionCall
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