mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
Hermes parser: clarify string arguments comment (JSON vs plain)
This commit is contained in:
parent
06e9422324
commit
24c13bc412
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ class HermesToolCallParser(ToolCallParser):
|
|||
# Handle arguments: could be dict or already a JSON string
|
||||
raw_args = tc_data.get("arguments", {})
|
||||
if isinstance(raw_args, str):
|
||||
# Already a string — use as-is (it's already JSON)
|
||||
# Already a string — pass through as-is.
|
||||
# It may be a JSON string ("{...}") or a plain string ("ls").
|
||||
args_str = raw_args
|
||||
else:
|
||||
# Dict — serialize to JSON
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue