Skip to content

messaging.delivery.base

base

Protocol definition for notification delivery adapters.

Classes

NotificationAdapter

Bases: Protocol

Contract for notification delivery transport.

Source code in src/codex_platform/messaging/delivery/base.py
class NotificationAdapter(Protocol):
    """Contract for notification delivery transport."""

    def enqueue(self, task_name: str, payload: dict[str, Any]) -> str | None:
        """Deliver or enqueue a serialized notification payload."""
        ...
Functions
enqueue(task_name, payload)

Deliver or enqueue a serialized notification payload.

Source code in src/codex_platform/messaging/delivery/base.py
def enqueue(self, task_name: str, payload: dict[str, Any]) -> str | None:
    """Deliver or enqueue a serialized notification payload."""
    ...