Skip to main content

TaskEventStream

Type Alias TaskEventStream 

Source
pub type TaskEventStream = Pin<Box<dyn Stream<Item = Result<TaskEvent, A2aError>> + Send>>;
Expand description

A pinned, heap-allocated stream of TaskEvents from a streaming A2A call.

Produced by A2aClient::stream_message. Each item is either a status update or an artifact update; errors are surfaced inline as Err(A2aError).

Aliased Typeยง

pub struct TaskEventStream { /* private fields */ }