Skip to content

Commit 2b4d85f

Browse files
committed
types
1 parent 54573dc commit 2b4d85f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asimov/services/inference_clients.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ async def tool_chain(
165165
]
166166
] = None,
167167
fifo_ratio: Optional[float] = None,
168-
tool_parser: Optional[Callable[[str, ...], list[Callable[[any], str]]]] = None,
169-
tool_result_reducer: Optional[Callable[[list[dict[str, Any]]], str]] = None,
168+
tool_parser: Optional[Callable[[str, Hashable], Awaitable[list[dict[str, Any]]]]] = None,
169+
tool_result_reducer: Optional[Callable[[list, list], str]] = None,
170170
):
171171
mode = None
172172
if mode_swap_callback:
@@ -310,7 +310,7 @@ async def tool_chain(
310310
calls = await tool_parser(buf, mode)
311311

312312
if type(calls) is not list:
313-
calls = [calls]
313+
calls = [calls] # type: ignore
314314

315315
resp = [{"type": "text", "text": buf}]
316316

0 commit comments

Comments
 (0)