pub struct ChatCompletionMessageListDatum {
pub content: Option<String>,
pub refusal: Option<String>,
pub tool_calls: Option<ChatCompletionMessageToolCalls>,
pub annotations: Option<Vec<ChatCompletionResponseMessageAnnotation>>,
pub function_call: Option<ChatCompletionResponseMessageFunctionCall>,
pub audio: Option<ChatCompletionResponseMessageAudio>,
pub id: String,
}
Fields§
§content: Option<String>
The contents of the message.
refusal: Option<String>
The refusal message generated by the model.
tool_calls: Option<ChatCompletionMessageToolCalls>
§annotations: Option<Vec<ChatCompletionResponseMessageAnnotation>>
Annotations for the message, when applicable, as when using the web search tool.
function_call: Option<ChatCompletionResponseMessageFunctionCall>
Deprecated and replaced by tool_calls
. The name and arguments of a function that should be called, as generated by the model.
audio: Option<ChatCompletionResponseMessageAudio>
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
id: String
The identifier of the chat message.
Implementations§
Source§impl ChatCompletionMessageListDatum
impl ChatCompletionMessageListDatum
Sourcepub fn builder() -> ChatCompletionMessageListDatumBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ChatCompletionMessageListDatumBuilder<((), (), (), (), (), (), ())>
Create a builder for building ChatCompletionMessageListDatum
.
On the builder, call .content(...)
(optional), .refusal(...)
(optional), .tool_calls(...)
(optional), .annotations(...)
(optional), .function_call(...)
(optional), .audio(...)
(optional), .id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionMessageListDatum
.
Trait Implementations§
Source§impl Clone for ChatCompletionMessageListDatum
impl Clone for ChatCompletionMessageListDatum
Source§fn clone(&self) -> ChatCompletionMessageListDatum
fn clone(&self) -> ChatCompletionMessageListDatum
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for ChatCompletionMessageListDatum
impl<'de> Deserialize<'de> for ChatCompletionMessageListDatum
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>,
Source§impl PartialEq for ChatCompletionMessageListDatum
impl PartialEq for ChatCompletionMessageListDatum
Source§fn eq(&self, other: &ChatCompletionMessageListDatum) -> bool
fn eq(&self, other: &ChatCompletionMessageListDatum) -> bool
self
and other
values to be equal, and is used by ==
.