77
88import httpx
99
10- from ..types import agent_rpc_params , agent_list_params , agent_rpc_by_name_params
10+ from ..types import AgentRpcParams , agent_rpc_params , agent_list_params , agent_rpc_by_name_params
1111from .._types import NOT_GIVEN , Body , Query , Headers , NotGiven
1212from .._utils import maybe_transform , async_maybe_transform
1313from .._compat import cached_property
2020)
2121from ..types .agent import Agent
2222from .._base_client import make_request_options
23+ from ..types .agent_rpc_params import AgentRpcParams
2324from ..types .agent_rpc_response import AgentRpcResponse
2425from ..types .agent_list_response import AgentListResponse
25- from ..types .agent_rpc_by_name_response import AgentRpcByNameResponse
2626
2727__all__ = ["AgentsResource" , "AsyncAgentsResource" ]
2828
@@ -221,7 +221,7 @@ def rpc(
221221 agent_id : str ,
222222 * ,
223223 method : Literal ["event/send" , "task/create" , "message/send" , "task/cancel" ],
224- params : agent_rpc_params . Params ,
224+ params : AgentRpcParams ,
225225 id : Union [int , str , None ] | NotGiven = NOT_GIVEN ,
226226 jsonrpc : Literal ["2.0" ] | NotGiven = NOT_GIVEN ,
227227 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -269,7 +269,7 @@ def rpc_by_name(
269269 agent_name : str ,
270270 * ,
271271 method : Literal ["event/send" , "task/create" , "message/send" , "task/cancel" ],
272- params : agent_rpc_by_name_params . Params ,
272+ params : AgentRpcParams ,
273273 id : Union [int , str , None ] | NotGiven = NOT_GIVEN ,
274274 jsonrpc : Literal ["2.0" ] | NotGiven = NOT_GIVEN ,
275275 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -278,7 +278,7 @@ def rpc_by_name(
278278 extra_query : Query | None = None ,
279279 extra_body : Body | None = None ,
280280 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
281- ) -> AgentRpcByNameResponse :
281+ ) -> AgentRpcResponse :
282282 """
283283 Handle JSON-RPC requests for an agent by its unique name.
284284
@@ -309,7 +309,7 @@ def rpc_by_name(
309309 options = make_request_options (
310310 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
311311 ),
312- cast_to = AgentRpcByNameResponse ,
312+ cast_to = AgentRpcResponse ,
313313 )
314314
315315
@@ -507,7 +507,7 @@ async def rpc(
507507 agent_id : str ,
508508 * ,
509509 method : Literal ["event/send" , "task/create" , "message/send" , "task/cancel" ],
510- params : agent_rpc_params . Params ,
510+ params : AgentRpcParams ,
511511 id : Union [int , str , None ] | NotGiven = NOT_GIVEN ,
512512 jsonrpc : Literal ["2.0" ] | NotGiven = NOT_GIVEN ,
513513 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -555,7 +555,7 @@ async def rpc_by_name(
555555 agent_name : str ,
556556 * ,
557557 method : Literal ["event/send" , "task/create" , "message/send" , "task/cancel" ],
558- params : agent_rpc_by_name_params . Params ,
558+ params : AgentRpcParams ,
559559 id : Union [int , str , None ] | NotGiven = NOT_GIVEN ,
560560 jsonrpc : Literal ["2.0" ] | NotGiven = NOT_GIVEN ,
561561 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -564,7 +564,7 @@ async def rpc_by_name(
564564 extra_query : Query | None = None ,
565565 extra_body : Body | None = None ,
566566 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
567- ) -> AgentRpcByNameResponse :
567+ ) -> AgentRpcResponse :
568568 """
569569 Handle JSON-RPC requests for an agent by its unique name.
570570
@@ -595,7 +595,7 @@ async def rpc_by_name(
595595 options = make_request_options (
596596 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
597597 ),
598- cast_to = AgentRpcByNameResponse ,
598+ cast_to = AgentRpcResponse ,
599599 )
600600
601601
0 commit comments