feat: (WIP) improve openrouter tool parsing and openai tool encoding

This commit is contained in:
Shivering Ocelot committed 2026-06-04 11:27:42 -05:00
1 parent 7058cf0771
commit 17d3041a60
5 files changed
+164 -96

No files matched your search

+2 -2
View File
@@ -127,10 +127,10 @@ class ToolCall:
is_error: Whether the result represents an error.
"""
def __init__(self, tool_name, arguments=None, id=None):
def __init__(self, tool_name, arguments={}, id=None):
self.id = id or ""
self.tool_name = tool_name
self.arguments = arguments or {}
self.arguments = arguments
self.result = None