pub struct ChatChoiceMessage {
pub content: Option<String>,
pub refusal: Option<String>,
pub tool_calls: Option<Vec<ChatMessageToolCall>>,
pub role: Option<String>,
pub function_call: Option<ChatMessageFunctionCall>,
pub audio: Option<ChatMessageAudio>,
}
Fields§
§content: Option<String>
The contents of the message.
refusal: Option<String>
The refusal message generated by the model.
tool_calls: Option<Vec<ChatMessageToolCall>>
The tool calls generated by the model, such as function calls.
role: Option<String>
The role of the author of this message.
function_call: Option<ChatMessageFunctionCall>
Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
audio: Option<ChatMessageAudio>
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
Trait Implementations§
Source§impl Clone for ChatChoiceMessage
impl Clone for ChatChoiceMessage
Source§fn clone(&self) -> ChatChoiceMessage
fn clone(&self) -> ChatChoiceMessage
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 Debug for ChatChoiceMessage
impl Debug for ChatChoiceMessage
Source§impl<'de> Deserialize<'de> for ChatChoiceMessage
impl<'de> Deserialize<'de> for ChatChoiceMessage
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 ChatChoiceMessage
impl PartialEq for ChatChoiceMessage
Source§impl Serialize for ChatChoiceMessage
impl Serialize for ChatChoiceMessage
impl StructuralPartialEq for ChatChoiceMessage
Auto Trait Implementations§
impl Freeze for ChatChoiceMessage
impl RefUnwindSafe for ChatChoiceMessage
impl Send for ChatChoiceMessage
impl Sync for ChatChoiceMessage
impl Unpin for ChatChoiceMessage
impl UnwindSafe for ChatChoiceMessage
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