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>,
}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 only so a consumer can bind the reply stream to the send it answers. 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).
Trait Implementations§
Source§impl Clone for StreamEventMessage
impl Clone for StreamEventMessage
Source§fn clone(&self) -> StreamEventMessage
fn clone(&self) -> StreamEventMessage
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 StreamEventMessage
impl Debug for StreamEventMessage
Source§impl<'de> Deserialize<'de> for StreamEventMessage
impl<'de> Deserialize<'de> for StreamEventMessage
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 StreamEventMessage
impl RefUnwindSafe for StreamEventMessage
impl Send for StreamEventMessage
impl Sync for StreamEventMessage
impl Unpin for StreamEventMessage
impl UnsafeUnpin for StreamEventMessage
impl UnwindSafe for StreamEventMessage
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