99from ...types import agent_list_params , agent_create_params
1010from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven
1111from ..._utils import maybe_transform , async_maybe_transform
12+ from .api_keys import (
13+ APIKeysResource ,
14+ AsyncAPIKeysResource ,
15+ APIKeysResourceWithRawResponse ,
16+ AsyncAPIKeysResourceWithRawResponse ,
17+ APIKeysResourceWithStreamingResponse ,
18+ AsyncAPIKeysResourceWithStreamingResponse ,
19+ )
1220from .versions import (
1321 VersionsResource ,
1422 AsyncVersionsResource ,
3341
3442
3543class AgentsResource (SyncAPIResource ):
44+ @cached_property
45+ def api_keys (self ) -> APIKeysResource :
46+ return APIKeysResource (self ._client )
47+
3648 @cached_property
3749 def versions (self ) -> VersionsResource :
3850 return VersionsResource (self ._client )
@@ -172,6 +184,10 @@ def list(
172184
173185
174186class AsyncAgentsResource (AsyncAPIResource ):
187+ @cached_property
188+ def api_keys (self ) -> AsyncAPIKeysResource :
189+ return AsyncAPIKeysResource (self ._client )
190+
175191 @cached_property
176192 def versions (self ) -> AsyncVersionsResource :
177193 return AsyncVersionsResource (self ._client )
@@ -321,6 +337,10 @@ def __init__(self, agents: AgentsResource) -> None:
321337 agents .list ,
322338 )
323339
340+ @cached_property
341+ def api_keys (self ) -> APIKeysResourceWithRawResponse :
342+ return APIKeysResourceWithRawResponse (self ._agents .api_keys )
343+
324344 @cached_property
325345 def versions (self ) -> VersionsResourceWithRawResponse :
326346 return VersionsResourceWithRawResponse (self ._agents .versions )
@@ -337,6 +357,10 @@ def __init__(self, agents: AsyncAgentsResource) -> None:
337357 agents .list ,
338358 )
339359
360+ @cached_property
361+ def api_keys (self ) -> AsyncAPIKeysResourceWithRawResponse :
362+ return AsyncAPIKeysResourceWithRawResponse (self ._agents .api_keys )
363+
340364 @cached_property
341365 def versions (self ) -> AsyncVersionsResourceWithRawResponse :
342366 return AsyncVersionsResourceWithRawResponse (self ._agents .versions )
@@ -353,6 +377,10 @@ def __init__(self, agents: AgentsResource) -> None:
353377 agents .list ,
354378 )
355379
380+ @cached_property
381+ def api_keys (self ) -> APIKeysResourceWithStreamingResponse :
382+ return APIKeysResourceWithStreamingResponse (self ._agents .api_keys )
383+
356384 @cached_property
357385 def versions (self ) -> VersionsResourceWithStreamingResponse :
358386 return VersionsResourceWithStreamingResponse (self ._agents .versions )
@@ -369,6 +397,10 @@ def __init__(self, agents: AsyncAgentsResource) -> None:
369397 agents .list ,
370398 )
371399
400+ @cached_property
401+ def api_keys (self ) -> AsyncAPIKeysResourceWithStreamingResponse :
402+ return AsyncAPIKeysResourceWithStreamingResponse (self ._agents .api_keys )
403+
372404 @cached_property
373405 def versions (self ) -> AsyncVersionsResourceWithStreamingResponse :
374406 return AsyncVersionsResourceWithStreamingResponse (self ._agents .versions )
0 commit comments