|
7 | 7 |
|
8 | 8 | import httpx |
9 | 9 |
|
10 | | -from ..types import AgentRpcParams, agent_rpc_params, agent_list_params, agent_rpc_by_name_params |
| 10 | +from ..types import agent_rpc_params, agent_list_params, agent_rpc_by_name_params |
11 | 11 | from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
12 | 12 | from .._utils import maybe_transform, async_maybe_transform |
13 | 13 | from .._compat import cached_property |
|
20 | 20 | ) |
21 | 21 | from ..types.agent import Agent |
22 | 22 | from .._base_client import make_request_options |
23 | | -from ..types.agent_rpc_params import AgentRpcParams |
24 | 23 | from ..types.agent_rpc_response import AgentRpcResponse |
25 | 24 | from ..types.agent_list_response import AgentListResponse |
26 | 25 |
|
@@ -221,7 +220,7 @@ def rpc( |
221 | 220 | agent_id: str, |
222 | 221 | *, |
223 | 222 | method: Literal["event/send", "task/create", "message/send", "task/cancel"], |
224 | | - params: AgentRpcParams, |
| 223 | + params: agent_rpc_params.Params, |
225 | 224 | id: Union[int, str, None] | NotGiven = NOT_GIVEN, |
226 | 225 | jsonrpc: Literal["2.0"] | NotGiven = NOT_GIVEN, |
227 | 226 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -269,7 +268,7 @@ def rpc_by_name( |
269 | 268 | agent_name: str, |
270 | 269 | *, |
271 | 270 | method: Literal["event/send", "task/create", "message/send", "task/cancel"], |
272 | | - params: AgentRpcParams, |
| 271 | + params: agent_rpc_by_name_params.Params, |
273 | 272 | id: Union[int, str, None] | NotGiven = NOT_GIVEN, |
274 | 273 | jsonrpc: Literal["2.0"] | NotGiven = NOT_GIVEN, |
275 | 274 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -507,7 +506,7 @@ async def rpc( |
507 | 506 | agent_id: str, |
508 | 507 | *, |
509 | 508 | method: Literal["event/send", "task/create", "message/send", "task/cancel"], |
510 | | - params: AgentRpcParams, |
| 509 | + params: agent_rpc_params.Params, |
511 | 510 | id: Union[int, str, None] | NotGiven = NOT_GIVEN, |
512 | 511 | jsonrpc: Literal["2.0"] | NotGiven = NOT_GIVEN, |
513 | 512 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -555,7 +554,7 @@ async def rpc_by_name( |
555 | 554 | agent_name: str, |
556 | 555 | *, |
557 | 556 | method: Literal["event/send", "task/create", "message/send", "task/cancel"], |
558 | | - params: AgentRpcParams, |
| 557 | + params: agent_rpc_by_name_params.Params, |
559 | 558 | id: Union[int, str, None] | NotGiven = NOT_GIVEN, |
560 | 559 | jsonrpc: Literal["2.0"] | NotGiven = NOT_GIVEN, |
561 | 560 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
|
0 commit comments