diff --git a/google/genai/client.py b/google/genai/client.py index 66ef247a7..8680a2b74 100644 --- a/google/genai/client.py +++ b/google/genai/client.py @@ -47,6 +47,7 @@ from . import _interactions from ._interactions.resources import AsyncInteractionsResource as AsyncNextGenInteractionsResource, InteractionsResource as NextGenInteractionsResource +from ._interactions.resources import WebhooksResource, AsyncWebhooksResource _interactions_experimental_warned = False class AsyncGeminiNextGenAPIClientAdapter(_interactions.AsyncGeminiNextGenAPIClientAdapter): @@ -199,6 +200,10 @@ def interactions(self) -> AsyncNextGenInteractionsResource: ) return self._nextgen_client.interactions + @property + def webhooks(self) -> AsyncWebhooksResource: + return self._nextgen_client.webhooks + @property def _has_nextgen_client(self) -> bool: return ( @@ -546,6 +551,10 @@ def interactions(self) -> NextGenInteractionsResource: ) return self._nextgen_client.interactions + @property + def webhooks(self) -> WebhooksResource: + return self._nextgen_client.webhooks + @property def _has_nextgen_client(self) -> bool: return (