pub struct UserMessageData {
pub agent_mode: Option<UserMessageAgentMode>,
pub attachments: Option<Vec<Value>>,
pub content: String,
pub delivery: Option<UserMessageDelivery>,
pub interaction_id: Option<String>,
pub is_autopilot_continuation: Option<bool>,
pub native_document_path_fallback_paths: Option<Vec<String>>,
pub parent_agent_task_id: Option<String>,
pub source: Option<String>,
pub supported_native_document_mime_types: Option<Vec<String>>,
pub transformed_content: Option<String>,
pub turn_id: Option<String>,
}Expand description
Session event “user.message”. Payload of user.message with displayed and model-transformed content, attachments, source/delivery metadata, mode, and telemetry IDs.
Fields§
§agent_mode: Option<UserMessageAgentMode>The agent mode that was active when this message was sent
attachments: Option<Vec<Value>>Files, selections, or GitHub references attached to the message
content: StringThe user’s message text as displayed in the timeline
delivery: Option<UserMessageDelivery>How this message was delivered to the agentic loop relative to loop state (idle-start vs. steering/queued while busy). The timing axis; combine with source (origin) for the full picture. Used for telemetry attribution.
interaction_id: Option<String>CAPI interaction ID for correlating this user message with its turn
is_autopilot_continuation: Option<bool>True when this user message was auto-injected by autopilot’s continuation loop rather than typed by the user; used to distinguish autopilot-driven turns in telemetry.
native_document_path_fallback_paths: Option<Vec<String>>Path-backed native document attachments that stayed on the tagged_files path flow because native upload could not read them or would exceed the request size limit
parent_agent_task_id: Option<String>Parent agent task ID for background telemetry correlated to this user turn
source: Option<String>Origin of this message, used for timeline filtering and attribution (e.g., skill-pdf for hidden skill injection or agent-<agent-id> for an inter-agent prompt)
supported_native_document_mime_types: Option<Vec<String>>Normalized document MIME types that were sent natively instead of through tagged_files XML
transformed_content: Option<String>Transformed version of the message sent to the model, with XML wrapping, timestamps, and other augmentations for prompt caching
turn_id: Option<String>The agent-loop turn ID that consumed this message; absent when no agent-loop turn consumed it
Trait Implementations§
Source§impl Clone for UserMessageData
impl Clone for UserMessageData
Source§fn clone(&self) -> UserMessageData
fn clone(&self) -> UserMessageData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more