feat: (WIP) improve openrouter tool parsing and openai tool encoding
This commit is contained in:
1 parent
7058cf0771
commit
17d3041a60
5 files changed
+164
-96
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user