77
88import httpx
99
10- from .name import (
11- NameResource ,
12- AsyncNameResource ,
13- NameResourceWithRawResponse ,
14- AsyncNameResourceWithRawResponse ,
15- NameResourceWithStreamingResponse ,
16- AsyncNameResourceWithStreamingResponse ,
17- )
18- from ...types import agent_rpc_params , agent_list_params , agent_rpc_by_name_params
19- from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven
20- from ..._utils import maybe_transform , async_maybe_transform
21- from ..._compat import cached_property
22- from ..._resource import SyncAPIResource , AsyncAPIResource
23- from ..._response import (
10+ from ..types import agent_rpc_params , agent_list_params , agent_rpc_by_name_params
11+ from .._types import NOT_GIVEN , Body , Query , Headers , NotGiven
12+ from .._utils import maybe_transform , async_maybe_transform
13+ from .._compat import cached_property
14+ from .._resource import SyncAPIResource , AsyncAPIResource
15+ from .._response import (
2416 to_raw_response_wrapper ,
2517 to_streamed_response_wrapper ,
2618 async_to_raw_response_wrapper ,
2719 async_to_streamed_response_wrapper ,
2820)
29- from ... types .agent import Agent
30- from ... _base_client import make_request_options
31- from ... types .agent_list_response import AgentListResponse
21+ from ..types .agent import Agent
22+ from .._base_client import make_request_options
23+ from ..types .agent_list_response import AgentListResponse
3224
3325__all__ = ["AgentsResource" , "AsyncAgentsResource" ]
3426
3527
3628class AgentsResource (SyncAPIResource ):
37- @cached_property
38- def name (self ) -> NameResource :
39- return NameResource (self ._client )
40-
4129 @cached_property
4230 def with_raw_response (self ) -> AgentsResourceWithRawResponse :
4331 """
@@ -320,10 +308,6 @@ def rpc_by_name(
320308
321309
322310class AsyncAgentsResource (AsyncAPIResource ):
323- @cached_property
324- def name (self ) -> AsyncNameResource :
325- return AsyncNameResource (self ._client )
326-
327311 @cached_property
328312 def with_raw_response (self ) -> AsyncAgentsResourceWithRawResponse :
329313 """
@@ -631,10 +615,6 @@ def __init__(self, agents: AgentsResource) -> None:
631615 agents .rpc_by_name ,
632616 )
633617
634- @cached_property
635- def name (self ) -> NameResourceWithRawResponse :
636- return NameResourceWithRawResponse (self ._agents .name )
637-
638618
639619class AsyncAgentsResourceWithRawResponse :
640620 def __init__ (self , agents : AsyncAgentsResource ) -> None :
@@ -662,10 +642,6 @@ def __init__(self, agents: AsyncAgentsResource) -> None:
662642 agents .rpc_by_name ,
663643 )
664644
665- @cached_property
666- def name (self ) -> AsyncNameResourceWithRawResponse :
667- return AsyncNameResourceWithRawResponse (self ._agents .name )
668-
669645
670646class AgentsResourceWithStreamingResponse :
671647 def __init__ (self , agents : AgentsResource ) -> None :
@@ -693,10 +669,6 @@ def __init__(self, agents: AgentsResource) -> None:
693669 agents .rpc_by_name ,
694670 )
695671
696- @cached_property
697- def name (self ) -> NameResourceWithStreamingResponse :
698- return NameResourceWithStreamingResponse (self ._agents .name )
699-
700672
701673class AsyncAgentsResourceWithStreamingResponse :
702674 def __init__ (self , agents : AsyncAgentsResource ) -> None :
@@ -723,7 +695,3 @@ def __init__(self, agents: AsyncAgentsResource) -> None:
723695 self .rpc_by_name = async_to_streamed_response_wrapper (
724696 agents .rpc_by_name ,
725697 )
726-
727- @cached_property
728- def name (self ) -> AsyncNameResourceWithStreamingResponse :
729- return AsyncNameResourceWithStreamingResponse (self ._agents .name )
0 commit comments