pub struct AssistantMessageData {
pub content: String,
pub encrypted_content: Option<String>,
pub interaction_id: Option<String>,
pub message_id: String,
pub output_tokens: Option<f64>,
pub parent_tool_call_id: Option<String>,
pub phase: Option<String>,
pub reasoning_opaque: Option<String>,
pub reasoning_text: Option<String>,
pub request_id: Option<RequestId>,
pub tool_requests: Vec<AssistantMessageToolRequest>,
pub turn_id: Option<String>,
}Expand description
Assistant response containing text content, optional tool requests, and interaction metadata
Fields§
§content: StringThe assistant’s text response content
encrypted_content: Option<String>Encrypted reasoning content from OpenAI models. Session-bound and stripped on resume.
interaction_id: Option<String>CAPI interaction ID for correlating this message with upstream telemetry
message_id: StringUnique identifier for this assistant message
output_tokens: Option<f64>Actual output token count from the API response (completion_tokens), used for accurate token accounting
parent_tool_call_id: Option<String>Tool call ID of the parent tool invocation when this event originates from a sub-agent
phase: Option<String>Generation phase for phased-output models (e.g., thinking vs. response phases)
reasoning_opaque: Option<String>Opaque/encrypted extended thinking data from Anthropic models. Session-bound and stripped on resume.
reasoning_text: Option<String>Readable reasoning text from the model’s extended thinking
request_id: Option<RequestId>GitHub request tracing ID (x-github-request-id header) for correlating with server-side logs
tool_requests: Vec<AssistantMessageToolRequest>Tool invocations requested by the assistant in this message
turn_id: Option<String>Identifier for the agent loop turn that produced this message, matching the corresponding assistant.turn_start event
Trait Implementations§
Source§impl Clone for AssistantMessageData
impl Clone for AssistantMessageData
Source§fn clone(&self) -> AssistantMessageData
fn clone(&self) -> AssistantMessageData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more