Skip to content

create_push_notification_config

autogen.beta.a2a.push.create_push_notification_config async #

create_push_notification_config(config, task_id, push_config, *, tenant=None)

Register a push-notification webhook for a task.

Source code in autogen/beta/a2a/push.py
async def create_push_notification_config(
    config: A2AConfig,
    task_id: str,
    push_config: A2APushConfig,
    *,
    tenant: str | None = None,
) -> A2APushConfig:
    """Register a push-notification webhook for a task."""
    async with open_session(config) as sdk:
        response = await sdk.create_task_push_notification_config(
            _to_proto(config, tenant, task_id=task_id, push=push_config),
        )
        return _from_proto(response)