Commits
Click on a commit to change the comparison rangefix(core): handle None arguments in parse_tool_call
When an LLM calls a parameter-less tool, some providers return None
for the arguments field instead of an empty string or "{}". This
caused parse_tool_call to raise a TypeError because json.loads(None)
is not valid.
This fix handles None and empty string arguments by treating them
as an empty object {}, allowing parameter-less tools to be parsed
correctly.
Fixes #34123 Merge branch 'master' into fix/core-parse-tool-call-none-arguments