Skip to content

API Reference parrot.a2a.push_notifications

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.a2a.push_notifications

View source

Push notification configuration store for the A2A v1.0 server (FEAT-272).

Implements the storage/CRUD side of the four A2A v1.0 push-notification config operations (Create/Get/List/Delete). Actual webhook delivery (HTTP POST to client URLs) is intentionally out of scope — this store only manages the configuration objects. A basic SSRF guard rejects obviously private/loopback webhook targets.

Class PushNotificationStore

In-memory store for :class:TaskPushNotificationConfig objects.

The backend is a per-process dict keyed by task_id then config_id. This mirrors the server's in-memory task store; a Redis-backed implementation with the same async interface is a follow-up.

Method PushNotificationStore.create

Store a push-notification config, assigning an id when absent.

create(config: TaskPushNotificationConfig) -> TaskPushNotificationConfig

Parameter Type Default Description
config TaskPushNotificationConfig

Returns: TaskPushNotificationConfig

Method PushNotificationStore.get

Return the config for (task_id, config_id) or None.

get(task_id: str, config_id: str) -> Optional[TaskPushNotificationConfig]

Parameter Type Default Description
task_id str
config_id str

Returns: Optional[TaskPushNotificationConfig]

Method PushNotificationStore.list_for_task

Return all configs registered for task_id.

list_for_task(task_id: str) -> List[TaskPushNotificationConfig]

Parameter Type Default Description
task_id str

Returns: List[TaskPushNotificationConfig]

Method PushNotificationStore.delete

Remove a config; return True if one was removed.

delete(task_id: str, config_id: str) -> bool

Parameter Type Default Description
task_id str
config_id str

Returns: bool

Alias TaskPushNotificationConfig

Re-exported from parrot.a2a.models.TaskPushNotificationConfig.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally