This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-31 18:24:45 -04:00
1 parent 35d6d26021
commit 5f710060be
1 file changed
+4 -1
+4 -1
View File
@@ -67,7 +67,10 @@ def _format_tool_call(item: dict) -> str | None:
if item.get("type") != "function_call" or item.get("status") != "in_progress":
return None
return f"\n\n`{item.get('name', 'tool')}`\n\n"
arguments = item.get("arguments")
title = arguments.get("title") if isinstance(arguments, dict) else None
name = str(title or item.get("name") or "tool").strip() or "tool"
return f"\n\n`{name}`\n\n"
async def _authenticate(request: Request) -> str: