streaming
A2A v1.0 Streaming Event Types
Structs
Section titled “Structs”TaskStatusUpdateEvent
Section titled “TaskStatusUpdateEvent”Streaming status update event.
Fields
| Field | Type | Description |
|---|---|---|
id | serde_json::Value | |
task_id | String | |
context_id | String | |
status | TaskStatus |
TaskArtifactUpdateEvent
Section titled “TaskArtifactUpdateEvent”Streaming artifact update event.
Fields
| Field | Type | Description |
|---|---|---|
id | serde_json::Value | |
task_id | String | |
context_id | String | |
artifact | Artifact | |
append | Option<bool> | |
last_chunk | Option<bool> |
StreamResponse
Section titled “StreamResponse”Top-level SSE stream envelope (v1.0).
Variants
| Variant | Description |
|---|---|
Task(Task) | |
Message(Message) | |
StatusUpdate(TaskStatusUpdateEvent) | |
ArtifactUpdate(TaskArtifactUpdateEvent) |
Methods
event_name
Section titled “event_name”fn event_name(&self) -> &''static strto_jsonrpc_data
Section titled “to_jsonrpc_data”fn to_jsonrpc_data(&self) -> Valueis_terminal
Section titled “is_terminal”fn is_terminal(&self) -> boolCheck whether this event signals stream termination.