Class SendMessageResponse

java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse<EventKind>
org.a2aproject.sdk.jsonrpc.common.wrappers.SendMessageResponse
All Implemented Interfaces:
A2AMessage

public final class SendMessageResponse extends A2AResponse<EventKind>
The response after receiving a send message request.
  • Constructor Details

    • SendMessageResponse

      public SendMessageResponse(String jsonrpc, Object id, EventKind result, A2AError error)
      Constructs response with all parameters.
      Parameters:
      jsonrpc - the JSON-RPC version
      id - the request ID
      result - the result
      error - the error if any
    • SendMessageResponse

      public SendMessageResponse(Object id, EventKind result)
      Constructs successful response.
      Parameters:
      id - the request ID
      result - the result
    • SendMessageResponse

      public SendMessageResponse(Object id, A2AError error)
      Constructs error response.
      Parameters:
      id - the request ID
      error - the error