pub struct OutputMessageDeltaData {
pub turn_id: TurnId,
pub message_id: MessageId,
pub delta: String,
pub accumulated: String,
pub phase: Option<ExecutionPhase>,
}Expand description
Data for output.message.delta event
Incremental text update during LLM generation. Events are batched (~100ms) to reduce volume while providing real-time feedback.
Fields§
§turn_id: TurnIdTurn ID this delta belongs to
message_id: MessageIdStable public ID for this assistant message across its streaming lifecycle.
This is the same identifier as OutputMessageCompletedData.message.id.
delta: StringThe new text chunk
accumulated: StringAccumulated text so far
phase: Option<ExecutionPhase>Best-effort streamed phase hint (EVE-774).
None means “not yet classified — treat as ordinary assistant text”,
NEVER “thinking”. Refinement is monotonic: once a stream reveals a native
phase (Commentary or FinalAnswer) it stays fixed for the rest of the
message — it never flip-flops and never reverts to None
(see ExecutionPhase::refine_streamed_hint). Providers without native
mid-stream phase (Anthropic, Gemini, …) leave this None until
completion. The authoritative classification remains the completed
Message.phase. See knowledge/execution/events.md.
Trait Implementations§
Source§impl Clone for OutputMessageDeltaData
impl Clone for OutputMessageDeltaData
Source§fn clone(&self) -> OutputMessageDeltaData
fn clone(&self) -> OutputMessageDeltaData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more