pub struct ChatCompletionStreamResponseDeltaFunctionCall {
pub arguments: Option<String>,
pub name: Option<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: Option<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: Option<String>
The name of the function to call.
Implementations§
Source§impl ChatCompletionStreamResponseDeltaFunctionCall
impl ChatCompletionStreamResponseDeltaFunctionCall
Sourcepub fn builder() -> ChatCompletionStreamResponseDeltaFunctionCallBuilder<((), ())>
pub fn builder() -> ChatCompletionStreamResponseDeltaFunctionCallBuilder<((), ())>
Create a builder for building ChatCompletionStreamResponseDeltaFunctionCall
.
On the builder, call .arguments(...)
(optional), .name(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionStreamResponseDeltaFunctionCall
.
Trait Implementations§
Source§impl Clone for ChatCompletionStreamResponseDeltaFunctionCall
impl Clone for ChatCompletionStreamResponseDeltaFunctionCall
Source§fn clone(&self) -> ChatCompletionStreamResponseDeltaFunctionCall
fn clone(&self) -> ChatCompletionStreamResponseDeltaFunctionCall
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ChatCompletionStreamResponseDeltaFunctionCall
impl Default for ChatCompletionStreamResponseDeltaFunctionCall
Source§fn default() -> ChatCompletionStreamResponseDeltaFunctionCall
fn default() -> ChatCompletionStreamResponseDeltaFunctionCall
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatCompletionStreamResponseDeltaFunctionCall
impl<'de> Deserialize<'de> for ChatCompletionStreamResponseDeltaFunctionCall
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 ChatCompletionStreamResponseDeltaFunctionCall
impl PartialEq for ChatCompletionStreamResponseDeltaFunctionCall
Source§fn eq(&self, other: &ChatCompletionStreamResponseDeltaFunctionCall) -> bool
fn eq(&self, other: &ChatCompletionStreamResponseDeltaFunctionCall) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionStreamResponseDeltaFunctionCall
Auto Trait Implementations§
impl Freeze for ChatCompletionStreamResponseDeltaFunctionCall
impl RefUnwindSafe for ChatCompletionStreamResponseDeltaFunctionCall
impl Send for ChatCompletionStreamResponseDeltaFunctionCall
impl Sync for ChatCompletionStreamResponseDeltaFunctionCall
impl Unpin for ChatCompletionStreamResponseDeltaFunctionCall
impl UnwindSafe for ChatCompletionStreamResponseDeltaFunctionCall
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