Class CreateTaskPushNotificationConfigRequest
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest<T>
org.a2aproject.sdk.jsonrpc.common.wrappers.NonStreamingJSONRPCRequest<TaskPushNotificationConfig>
org.a2aproject.sdk.jsonrpc.common.wrappers.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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing instances. -
Field Summary
Fields inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest
id, jsonrpc, method, paramsFields inherited from interface org.a2aproject.sdk.jsonrpc.common.wrappers.A2AMessage
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionCreateTaskPushNotificationConfigRequest(String jsonrpc, Object id, TaskPushNotificationConfig params) Constructs request with all parameters.CreateTaskPushNotificationConfigRequest(String id, TaskPushNotificationConfig taskPushConfig) Constructs request with ID and parameters. -
Method Summary
Methods inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest
getId, getJsonrpc, getMethod, getParams, validateAndSetJsonParameters
-
Constructor Details
-
CreateTaskPushNotificationConfigRequest
public CreateTaskPushNotificationConfigRequest(String jsonrpc, Object id, TaskPushNotificationConfig params) Constructs request with all parameters.- Parameters:
jsonrpc- the JSON-RPC versionid- the request IDparams- the request parameters
-
CreateTaskPushNotificationConfigRequest
public CreateTaskPushNotificationConfigRequest(String id, TaskPushNotificationConfig taskPushConfig) Constructs request with ID and parameters.- Parameters:
id- the request IDtaskPushConfig- the task push notification configuration
-
-
Method Details
-
builder
Create a new Builder- Returns:
- the builder
-