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 org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse
error, id, jsonrpc, resultFields inherited from interface org.a2aproject.sdk.jsonrpc.common.wrappers.A2AMessage
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionListTasksResponse(Object id, ListTasksResult result) Constructs successful response.ListTasksResponse(Object id, org.a2aproject.sdk.spec.A2AError error) Constructs error response.ListTasksResponse(String jsonrpc, Object id, ListTasksResult result, org.a2aproject.sdk.spec.A2AError error) Constructs response with all parameters. -
Method Summary
Methods inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse
getError, getId, getJsonrpc, getResult
-
Constructor Details
-
ListTasksResponse
public ListTasksResponse(String jsonrpc, Object id, ListTasksResult result, org.a2aproject.sdk.spec.A2AError error) 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
Constructs error response.- Parameters:
id- the request IDerror- the error
-