pub enum LoopbackEvent {
Chunk(String),
Flush,
FullMessage(String),
Status(String),
ToolStart(Box<ToolStartData>),
ToolOutput(Box<ToolOutputData>),
Usage {
input_tokens: u64,
output_tokens: u64,
context_window: u64,
},
SessionTitle(String),
Plan(Vec<(String, PlanItemStatus)>),
ThinkingChunk(String),
Stop(StopHint),
}Expand description
Events emitted by the agent side toward the A2A caller.
Variants§
Chunk(String)
Flush
FullMessage(String)
Status(String)
ToolStart(Box<ToolStartData>)
Emitted immediately before tool execution begins.
ToolOutput(Box<ToolOutputData>)
Usage
Token usage from the last LLM turn.
SessionTitle(String)
Generated session title (emitted after the first agent response).
Plan(Vec<(String, PlanItemStatus)>)
Execution plan update.
ThinkingChunk(String)
Thinking/reasoning token chunk from the LLM.
Stop(StopHint)
Non-default stop condition detected by the agent loop.
Emitted immediately before Flush. When absent, the stop reason is EndTurn.
Trait Implementations§
Source§impl Clone for LoopbackEvent
impl Clone for LoopbackEvent
Source§fn clone(&self) -> LoopbackEvent
fn clone(&self) -> LoopbackEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LoopbackEvent
impl RefUnwindSafe for LoopbackEvent
impl Send for LoopbackEvent
impl Sync for LoopbackEvent
impl Unpin for LoopbackEvent
impl UnsafeUnpin for LoopbackEvent
impl UnwindSafe for LoopbackEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request