Class SendMessageResponse
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse<EventKind>
org.a2aproject.sdk.jsonrpc.common.wrappers.SendMessageResponse
- All Implemented Interfaces:
A2AMessage
The response after receiving a send message 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
ConstructorsConstructorDescriptionSendMessageResponse(Object id, A2AError error) Constructs error response.SendMessageResponse(Object id, EventKind result) Constructs successful response.SendMessageResponse(String jsonrpc, Object id, EventKind result, 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
-
SendMessageResponse
Constructs response with all parameters.- Parameters:
jsonrpc- the JSON-RPC versionid- the request IDresult- the resulterror- the error if any
-
SendMessageResponse
Constructs successful response.- Parameters:
id- the request IDresult- the result
-
SendMessageResponse
Constructs error response.- Parameters:
id- the request IDerror- the error
-