Class SendStreamingMessageRequest
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest<T>
org.a2aproject.sdk.jsonrpc.common.wrappers.StreamingJSONRPCRequest<MessageSendParams>
org.a2aproject.sdk.jsonrpc.common.wrappers.SendStreamingMessageRequest
- All Implemented Interfaces:
A2AMessage
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructingSendStreamingMessageRequestinstances. -
Field Summary
Fields inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest
id, jsonrpc, method, paramsFields inherited from interface org.a2aproject.sdk.jsonrpc.common.wrappers.A2AMessage
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionSendStreamingMessageRequest(Object id, MessageSendParams params) Constructs request with ID and parameters.SendStreamingMessageRequest(String jsonrpc, Object id, MessageSendParams params) Constructs request with all parameters. -
Method Summary
Methods inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest
getId, getJsonrpc, getMethod, getParams, validateAndSetJsonParameters
-
Constructor Details
-
SendStreamingMessageRequest
Constructs request with all parameters.- Parameters:
jsonrpc- the JSON-RPC versionid- the request IDparams- the request parameters
-
SendStreamingMessageRequest
Constructs request with ID and parameters.- Parameters:
id- the request IDparams- the request parameters
-
-
Method Details
-
builder
Create a new Builder- Returns:
- the builder
-