This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-09 16:04:19 -05:00
1 parent 9b15e89b02
commit 0a4166baa0
2 files changed
+5 -1

No files matched your search

+2
View File
@@ -2923,6 +2923,8 @@ async def execute_tool(name: str, args: dict, __context__: dict) -> str:
if not is_builtin_tool_enabled(name, __context__.get("builtin_tools")):
return f"Error: tool disabled: {name}"
fn = info["fn"]
args = dict(args)
args.pop("workspace", None)
try:
sig = inspect.signature(fn)
if "__context__" in sig.parameters: