pub struct ChatStreamChunk {
pub kind: String,
pub delta: Option<String>,
pub error: Option<String>,
pub message: Option<String>,
}Expand description
One normalized chunk of an agent.chat stream, delivered to an in-process
chat_collectors sink (the A2A bridge). A
token chunk carries a delta; a terminal chunk has kind "done"
(success), "error" (with error text), or "auth_required" (with
message text — the turn was refused because of the Parslee account, and
nothing follows it on the wire).
Fields§
§kind: String§delta: Option<String>§error: Option<String>§message: Option<String>The message field of an auth_required terminal frame. Carried
separately from error because the two are different things to a
caller: one reports a failure, the other names a step a person can
take.
Trait Implementations§
Source§impl Clone for ChatStreamChunk
impl Clone for ChatStreamChunk
Auto Trait Implementations§
impl Freeze for ChatStreamChunk
impl RefUnwindSafe for ChatStreamChunk
impl Send for ChatStreamChunk
impl Sync for ChatStreamChunk
impl Unpin for ChatStreamChunk
impl UnsafeUnpin for ChatStreamChunk
impl UnwindSafe for ChatStreamChunk
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
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<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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