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