Skip to content

get_push_notification_config

autogen.beta.a2a.push.get_push_notification_config async #

get_push_notification_config(config, task_id, config_id, *, tenant=None)

Fetch a previously-registered push config by id.

Source code in autogen/beta/a2a/push.py
async def get_push_notification_config(
    config: A2AConfig,
    task_id: str,
    config_id: str,
    *,
    tenant: str | None = None,
) -> A2APushConfig:
    """Fetch a previously-registered push config by id."""
    async with open_session(config) as sdk:
        kwargs = with_tenant(config, tenant, task_id=task_id, id=config_id)
        response = await sdk.get_task_push_notification_config(
            GetTaskPushNotificationConfigRequest(**kwargs),
        )
        return _from_proto(response)