test/tools: catalog, grants, and async tool helpers

This commit is contained in:
2026-07-24 14:57:03 +08:00
parent 2f6133f685
commit 12c8adda3a
12 changed files with 285 additions and 35 deletions
+2 -2
View File
@@ -126,7 +126,7 @@ async def test_parallel_tool_calls_run_concurrently() -> None:
gate = asyncio.Event()
wait_timeout = 2.0
@tool
@tool(register=False)
async def slow_a() -> str:
nonlocal started
started += 1
@@ -135,7 +135,7 @@ async def test_parallel_tool_calls_run_concurrently() -> None:
_ = await asyncio.wait_for(gate.wait(), timeout=wait_timeout)
return "a"
@tool
@tool(register=False)
async def slow_b() -> str:
nonlocal started
started += 1