Skip to main content

Module events

Module events 

Source
Expand description

Server-sent event types for A2A streaming.

When a client calls SendStreamingMessage or SubscribeToTask, the server responds with a stream of Server-Sent Events. Each event carries a StreamResponse JSON payload: an externally-tagged (single-key) object whose key names the variant, matching the ProtoJSON oneof encoding.

§Stream event variants

JSON fieldRust variant
"task"crate::task::Task
"message"crate::message::Message
"statusUpdate"TaskStatusUpdateEvent
"artifactUpdate"TaskArtifactUpdateEvent

Structs§

TaskArtifactUpdateEvent
A task delta where an artifact has been generated.
TaskStatusUpdateEvent
An event sent by the agent to notify the client of a change in a task’s status.

Enums§

StreamResponse
A wrapper object used in streaming operations to encapsulate different types of response data.