pub struct AssistantResponseMessage {
pub role: Option<String>,
pub content: Option<AssistantResponseContent>,
pub reasoning_content: Option<String>,
pub audio: Option<AssistantResponseAudio>,
pub tool_calls: Option<Vec<AssistantResponseToolCall>>,
}Expand description
Message returned in an assistant invocation choice.
Fields§
§role: Option<String>Response role.
content: Option<AssistantResponseContent>Text or multimodal response content. JSON null maps to None.
reasoning_content: Option<String>Model reasoning content, when returned.
audio: Option<AssistantResponseAudio>Voice-model audio payload.
tool_calls: Option<Vec<AssistantResponseToolCall>>Function or MCP tool calls.
Trait Implementations§
Source§impl Clone for AssistantResponseMessage
impl Clone for AssistantResponseMessage
Source§fn clone(&self) -> AssistantResponseMessage
fn clone(&self) -> AssistantResponseMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssistantResponseMessage
impl Debug for AssistantResponseMessage
Source§impl<'de> Deserialize<'de> for AssistantResponseMessage
impl<'de> Deserialize<'de> for AssistantResponseMessage
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 AssistantResponseMessage
impl PartialEq for AssistantResponseMessage
Source§impl Serialize for AssistantResponseMessage
impl Serialize for AssistantResponseMessage
impl StructuralPartialEq for AssistantResponseMessage
Auto Trait Implementations§
impl Freeze for AssistantResponseMessage
impl RefUnwindSafe for AssistantResponseMessage
impl Send for AssistantResponseMessage
impl Sync for AssistantResponseMessage
impl Unpin for AssistantResponseMessage
impl UnsafeUnpin for AssistantResponseMessage
impl UnwindSafe for AssistantResponseMessage
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