Enum StreamDelta
pub enum StreamDelta {
Text(String),
Status(String),
ToolStart {
tool: String,
arguments: Arc<Value>,
tool_provenance: Option<ToolProvenance>,
},
ToolComplete {
tool: String,
arguments: Arc<Value>,
tool_provenance: Option<ToolProvenance>,
secs: u64,
success: bool,
error: Option<String>,
},
Reasoning(String),
Lifecycle(ProgressEvent),
}Expand description
Delta sent from the agent loop to the channel’s draft updater. Append-only — no clear/reset variant exists by design.
Variants§
Text(String)
Response text to append to the message buffer.
Status(String)
Ephemeral tool progress (not part of the response body).
ToolStart
A pending tool call. Channel draft consumers decide how to render its arguments; the runtime keeps this event structured to avoid coupling a transport-specific disclosure policy into the agent loop.
Fields
tool_provenance: Option<ToolProvenance>Canonical trust origin carried from the resolved static or activated
tool. None means the name did not resolve in either registry.
ToolComplete
A completed tool call paired with its original arguments.
Fields
tool_provenance: Option<ToolProvenance>The same trust origin observed when the matching start event was
emitted; consumers must treat None as untrusted.
Reasoning(String)
Provider reasoning text. Channel surfaces must opt in before rendering.
Lifecycle(ProgressEvent)
Typed, non-sensitive agent lifecycle progress.
Implementations§
Source§impl StreamDelta
impl StreamDelta
Sourcepub fn legacy_status(&self) -> Option<String>
pub fn legacy_status(&self) -> Option<String>
Render structured tool events with the historical conservative policy. Non-Matrix consumers must use this instead of serializing arguments.
Trait Implementations§
Source§impl Clone for StreamDelta
impl Clone for StreamDelta
Source§fn clone(&self) -> StreamDelta
fn clone(&self) -> StreamDelta
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for StreamDelta
impl RefUnwindSafe for StreamDelta
impl Send for StreamDelta
impl Sync for StreamDelta
impl Unpin for StreamDelta
impl UnsafeUnpin for StreamDelta
impl UnwindSafe for StreamDelta
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more