pub struct StreamEventMessage {
pub event: Value,
pub parent_tool_use_id: Option<String>,
pub uuid: String,
pub session_id: String,
pub ttft_ms: Option<u64>,
pub user_message_uuid: Option<String>,
pub user_message_uuids: Vec<String>,
pub resume_reason: Option<String>,
}Fields§
§event: Value§parent_tool_use_id: Option<String>§uuid: String§session_id: String§ttft_ms: Option<u64>§user_message_uuid: Option<String>Client uuid of the user message that triggered this turn, stamped on the turn’s first non-ping stream event so a consumer can bind the reply stream to the send it answers. Since CLI 2.1.269 the turn’s first complete assistant message is stamped too, independently, so the same uuid may appear on both frames. Absent on later stream events, on synthetic/scheduled turns, and from CLIs before 2.1.259.
user_message_uuids: Vec<String>Client uuids of every user message whose prompt this turn has consumed
so far, in consumption order. Always contains user_message_uuid; at
most 64 entries. Present exactly when user_message_uuid is; absent
from CLIs before 2.1.259 (fall back to user_message_uuid).
resume_reason: Option<String>Why this frame’s turn is the automatic re-run of a turn a worker
restart interrupted: the host’s CLAUDE_CODE_RESUME_REASON when it set
one, else interrupted_turn. Stamped on the same reply frames as
user_message_uuid, so a consumer can tell the re-run’s first reply
from the interrupted attempt’s. Absent on every other turn, on
thinking_tokens frames, and from CLIs before 2.1.268.
Trait Implementations§
Source§impl Clone for StreamEventMessage
impl Clone for StreamEventMessage
Source§fn clone(&self) -> StreamEventMessage
fn clone(&self) -> StreamEventMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more