Class ListTasksResponse
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse<ListTasksResult>
org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResponse
- All Implemented Interfaces:
A2AMessage
The response for a list tasks request.
-
Field Summary
Fields inherited from class A2AResponse
error, id, jsonrpc, resultFields inherited from interface A2AMessage
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionListTasksResponse(Object id, ListTasksResult result) Constructs successful response.ListTasksResponse(Object id, A2AError error) Constructs error response.ListTasksResponse(String jsonrpc, Object id, ListTasksResult result, A2AError error) Constructs response with all parameters. -
Method Summary
Methods inherited from class A2AResponse
getError, getId, getJsonrpc, getResult
-
Constructor Details
-
ListTasksResponse
Constructs response with all parameters.- Parameters:
jsonrpc- the JSON-RPC versionid- the request IDresult- the resulterror- the error if any
-
ListTasksResponse
Constructs successful response.- Parameters:
id- the request IDresult- the result
-
ListTasksResponse
-