Class SendStreamingMessageRequest

All Implemented Interfaces:
A2AMessage

public final class SendStreamingMessageRequest extends StreamingJSONRPCRequest<MessageSendParams>
JSON-RPC request to initiate a new task with streaming event delivery.

This request starts agent processing for a message and immediately returns a stream of events representing the agent's progress and responses. Unlike SendMessageRequest, this enables real-time progress updates as the agent processes the request.

The streaming response provides StreamingEventKind events such as task updates, artifact additions, and status changes as they occur, rather than waiting for final completion.

This class implements the JSON-RPC message/stream method as specified in the A2A Protocol.

See Also:
  • Constructor Details

    • SendStreamingMessageRequest

      public SendStreamingMessageRequest(String jsonrpc, Object id, MessageSendParams params)
      Constructs request with all parameters.
      Parameters:
      jsonrpc - the JSON-RPC version
      id - the request ID
      params - the request parameters
    • SendStreamingMessageRequest

      public SendStreamingMessageRequest(Object id, MessageSendParams params)
      Constructs request with ID and parameters.
      Parameters:
      id - the request ID
      params - the request parameters
  • Method Details