pub struct ChatCompletionResponseMessageFunctionCall {
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 ChatCompletionResponseMessageFunctionCall
impl ChatCompletionResponseMessageFunctionCall
Sourcepub fn builder() -> ChatCompletionResponseMessageFunctionCallBuilder<((), ())>
pub fn builder() -> ChatCompletionResponseMessageFunctionCallBuilder<((), ())>
Create a builder for building ChatCompletionResponseMessageFunctionCall
.
On the builder, call .arguments(...)
, .name(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionResponseMessageFunctionCall
.
Trait Implementations§
Source§impl Clone for ChatCompletionResponseMessageFunctionCall
impl Clone for ChatCompletionResponseMessageFunctionCall
Source§fn clone(&self) -> ChatCompletionResponseMessageFunctionCall
fn clone(&self) -> ChatCompletionResponseMessageFunctionCall
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 ChatCompletionResponseMessageFunctionCall
impl<'de> Deserialize<'de> for ChatCompletionResponseMessageFunctionCall
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 ChatCompletionResponseMessageFunctionCall
impl PartialEq for ChatCompletionResponseMessageFunctionCall
Source§fn eq(&self, other: &ChatCompletionResponseMessageFunctionCall) -> bool
fn eq(&self, other: &ChatCompletionResponseMessageFunctionCall) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionResponseMessageFunctionCall
Auto Trait Implementations§
impl Freeze for ChatCompletionResponseMessageFunctionCall
impl RefUnwindSafe for ChatCompletionResponseMessageFunctionCall
impl Send for ChatCompletionResponseMessageFunctionCall
impl Sync for ChatCompletionResponseMessageFunctionCall
impl Unpin for ChatCompletionResponseMessageFunctionCall
impl UnwindSafe for ChatCompletionResponseMessageFunctionCall
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