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 field | Rust variant |
|---|---|
"task" | crate::task::Task |
"message" | crate::message::Message |
"statusUpdate" | TaskStatusUpdateEvent |
"artifactUpdate" | TaskArtifactUpdateEvent |
Structs§
- Task
Artifact Update Event - A task delta where an artifact has been generated.
- Task
Status Update Event - An event sent by the agent to notify the client of a change in a task’s status.
Enums§
- Stream
Response - A wrapper object used in streaming operations to encapsulate different types of response data.