Skip to content

Commit 841bf22

Browse files
wanlin31copybara-github
authored andcommitted
feat: Wire the webhook into python and js client.
PiperOrigin-RevId: 897942243
1 parent ccec350 commit 841bf22

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

google/genai/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from . import _interactions
4848

4949
from ._interactions.resources import AsyncInteractionsResource as AsyncNextGenInteractionsResource, InteractionsResource as NextGenInteractionsResource
50+
from ._interactions.resources import WebhooksResource, AsyncWebhooksResource
5051
_interactions_experimental_warned = False
5152

5253
class AsyncGeminiNextGenAPIClientAdapter(_interactions.AsyncGeminiNextGenAPIClientAdapter):
@@ -199,6 +200,10 @@ def interactions(self) -> AsyncNextGenInteractionsResource:
199200
)
200201
return self._nextgen_client.interactions
201202

203+
@property
204+
def webhooks(self) -> AsyncWebhooksResource:
205+
return self._nextgen_client.webhooks
206+
202207
@property
203208
def _has_nextgen_client(self) -> bool:
204209
return (
@@ -546,6 +551,10 @@ def interactions(self) -> NextGenInteractionsResource:
546551
)
547552
return self._nextgen_client.interactions
548553

554+
@property
555+
def webhooks(self) -> WebhooksResource:
556+
return self._nextgen_client.webhooks
557+
549558
@property
550559
def _has_nextgen_client(self) -> bool:
551560
return (

0 commit comments

Comments
 (0)