Class GetTaskRequest
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest<T>
org.a2aproject.sdk.jsonrpc.common.wrappers.NonStreamingJSONRPCRequest<org.a2aproject.sdk.spec.TaskQueryParams>
org.a2aproject.sdk.jsonrpc.common.wrappers.GetTaskRequest
- All Implemented Interfaces:
A2AMessage
public final class GetTaskRequest
extends NonStreamingJSONRPCRequest<org.a2aproject.sdk.spec.TaskQueryParams>
JSON-RPC request to retrieve task information by ID.
This request queries the agent for the current state of a specific task, including its status, artifacts, messages, and other task metadata. Clients use this to check task progress or retrieve completed task results.
This class implements the JSON-RPC tasks/get method as specified in the A2A Protocol.
- See Also:
-
for the corresponding responsefor the parameter structurefor the returned task structure- A2A Protocol Specification
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing instances. -
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
ConstructorsConstructorDescriptionGetTaskRequest(Object id, org.a2aproject.sdk.spec.TaskQueryParams params) Constructs request with ID and parameters.GetTaskRequest(String jsonrpc, Object id, org.a2aproject.sdk.spec.TaskQueryParams 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
-
GetTaskRequest
Constructs request with all parameters.- Parameters:
jsonrpc- the JSON-RPC versionid- the request IDparams- the request parameters
-
GetTaskRequest
Constructs request with ID and parameters.- Parameters:
id- the request IDparams- the request parameters
-
-
Method Details
-
builder
Create a new Builder- Returns:
- the builder
-