mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-25 08:04:57 +08:00
test/tools: catalog, grants, and async tool helpers
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user