Class CreateTaskPushNotificationConfigRequest

All Implemented Interfaces:
A2AMessage

public final class CreateTaskPushNotificationConfigRequest extends NonStreamingJSONRPCRequest<TaskPushNotificationConfig>
JSON-RPC request to configure push notifications for a specific task.

This request registers or updates the push notification endpoint for a task, enabling the agent to send asynchronous updates (status changes, artifact additions) to the specified URL without requiring client polling.

This class implements the JSON-RPC tasks/pushNotificationConfig/set method.

See Also:
  • Constructor Details

    • CreateTaskPushNotificationConfigRequest

      public CreateTaskPushNotificationConfigRequest(String jsonrpc, Object id, TaskPushNotificationConfig params)
      Constructs request with all parameters.
      Parameters:
      jsonrpc - the JSON-RPC version
      id - the request ID
      params - the request parameters
    • CreateTaskPushNotificationConfigRequest

      public CreateTaskPushNotificationConfigRequest(String id, TaskPushNotificationConfig taskPushConfig)
      Constructs request with ID and parameters.
      Parameters:
      id - the request ID
      taskPushConfig - the task push notification configuration
  • Method Details