Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,11 @@ async def _execute_tool_call(
"""Execute a single tool call and return the result."""
# Load the arguments from the tool call.
try:
arguments = json.loads(tool_call.arguments)
# Handle empty string as empty dict to support tools with no parameters
if not tool_call.arguments or tool_call.arguments.strip() == "":
arguments = {}
else:
arguments = json.loads(tool_call.arguments)
except json.JSONDecodeError as e:
return (
tool_call,
Expand Down