Send streaming messages to A2A agents and receive real-time responses via Server-Sent Events
message/stream method enables real-time communication with A2A agents using Server-Sent Events (SSE). This allows you to receive partial responses as the agent processes your request, providing a more interactive experience.
application/jsontext/event-stream for SSE supportno-cache for real-time streaming"2.0""message/stream""2.0"1. Stream Initiation
submittedThe request has been received and queued for processing.2. Processing Updates
workingThe agent is actively processing the request. May include progress updates.3. Completion
completedThe agent has finished processing and provides the final response.Connection Handling
Error Recovery
Performance
Reliability
final flag to know when stream is completeUser Experience
| Feature | message/send | message/stream |
|---|---|---|
| Response Type | Single response | Multiple events |
| Real-time Updates | No | Yes |
| Progress Tracking | No | Yes |
| Connection | Request/Response | Persistent |
| Use Case | Quick queries | Long-running tasks |
| Complexity | Simple | Moderate |