pub struct ChatCompletionMessageForResponse {
pub role: MessageRole,
pub content: Option<String>,
pub name: Option<String>,
pub tool_calls: Option<Vec<ToolCall>>,
}
Expand description
Represents a chat completion message for a response.
Fields§
§role: MessageRole
Role of the message sender.
content: Option<String>
Optional content of the message.
name: Option<String>
Optional name of the message sender.
tool_calls: Option<Vec<ToolCall>>
Optional tool calls related to the message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCompletionMessageForResponse
impl<'de> Deserialize<'de> for ChatCompletionMessageForResponse
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 ChatCompletionMessageForResponse
impl RefUnwindSafe for ChatCompletionMessageForResponse
impl Send for ChatCompletionMessageForResponse
impl Sync for ChatCompletionMessageForResponse
impl Unpin for ChatCompletionMessageForResponse
impl UnwindSafe for ChatCompletionMessageForResponse
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