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

+3 -1
View File
@@ -2166,7 +2166,9 @@ async def run_chat_task(
for idx in other_indices:
tc, item = call_items[idx]
if tc["name"] == "create_artifact":
result = await create_artifact(**tc["arguments"], workspace=workspace)
args = dict(tc["arguments"])
args.pop("workspace", None)
result = await create_artifact(**args, workspace=workspace)
else:
result = await execute_tool(
tc["name"],
+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: