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
@@ -9,13 +9,13 @@ if TYPE_CHECKING:
from collections.abc import Mapping
@tool
@tool(register=False)
def delete_path(path: str, *, recursive: bool = False) -> str:
del recursive
return f"deleted {path}"
@tool
@tool(register=False)
def read_file(path: str) -> str:
return f"read {path}"