pub struct ChatCompletionObjectMessage {
pub content: Option<String>,
pub tool_calls: Vec<ToolCall>,
pub role: ChatCompletionRole,
pub function_call: Option<ChatMessageFunctionCall>,
}Expand description
Represents a chat completion message generated by the model.
Fields§
§content: Option<String>The contents of the message.
tool_calls: Vec<ToolCall>The tool calls generated by the model, such as function calls.
role: ChatCompletionRoleThe role of the author of this message.
function_call: Option<ChatMessageFunctionCall>Deprecated. The name and arguments of a function that should be called, as generated by the model.
Trait Implementations§
Source§impl Debug for ChatCompletionObjectMessage
impl Debug for ChatCompletionObjectMessage
Source§impl<'de> Deserialize<'de> for ChatCompletionObjectMessage
impl<'de> Deserialize<'de> for ChatCompletionObjectMessage
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 ChatCompletionObjectMessage
impl RefUnwindSafe for ChatCompletionObjectMessage
impl Send for ChatCompletionObjectMessage
impl Sync for ChatCompletionObjectMessage
impl Unpin for ChatCompletionObjectMessage
impl UnwindSafe for ChatCompletionObjectMessage
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