pub struct ChatCompletionResponseMessage {
pub annotations: Option<Vec<ChatCompletionResponseMessageAnnotations>>,
pub audio: Option<ChatCompletionResponseMessageAudio>,
pub content: String,
pub function_call: Option<ChatCompletionResponseMessageFunctionCall>,
pub refusal: String,
pub role: String,
pub tool_calls: Option<ChatCompletionMessageToolCalls>,
}
Fields§
§annotations: Option<Vec<ChatCompletionResponseMessageAnnotations>>
Annotations for the message, when applicable, as when using the web search tool.
audio: Option<ChatCompletionResponseMessageAudio>
§content: String
The contents of the message.
function_call: Option<ChatCompletionResponseMessageFunctionCall>
§refusal: String
The refusal message generated by the model.
role: String
The role of the author of this message.
tool_calls: Option<ChatCompletionMessageToolCalls>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCompletionResponseMessage
impl<'de> Deserialize<'de> for ChatCompletionResponseMessage
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
Auto Trait Implementations§
impl Freeze for ChatCompletionResponseMessage
impl RefUnwindSafe for ChatCompletionResponseMessage
impl Send for ChatCompletionResponseMessage
impl Sync for ChatCompletionResponseMessage
impl Unpin for ChatCompletionResponseMessage
impl UnwindSafe for ChatCompletionResponseMessage
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