Class CreateTaskPushNotificationConfigResponse

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

public final class CreateTaskPushNotificationConfigResponse extends A2AResponse<TaskPushNotificationConfig>
JSON-RPC response confirming push notification configuration for a task.

This response confirms that the push notification configuration has been successfully registered for the task. The result contains the full TaskPushNotificationConfig as stored by the agent.

If push notifications are not supported or an error occurs, the error field will contain a A2AError (e.g., PushNotificationNotSupportedError).

See Also:
  • Constructor Details

    • CreateTaskPushNotificationConfigResponse

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

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

      public CreateTaskPushNotificationConfigResponse(Object id, TaskPushNotificationConfig result)
      Constructs success response.
      Parameters:
      id - the request ID
      result - the push notification configuration