NousResearch/hermes-agent
Tool-call parsing issues with nested JSON and inline XML
Cluster 22688 · acp. Data as of
2 open items. Fix attempted, not merged.
The short answer
1open issue
1open PR
4items grouped
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- No fix has been merged to main. 1 PR closed without merging; see the attempts below.
- Tracker
- The maintainers' tracker marks this
unresolved. That is separate from the fix event. - Still open
- 1 issue and 1 PR.
Next step: read the attempts below. Your case may extend or revive that work.
Pick up a Lab taskMost members concern how tool_use/tool_call blocks are extracted from model output, with reports of regex-based parsing mishandling nested JSON or closing tags inside JSON strings. One member proposes a brace-depth scanner, and another covers recovering inline XML tool calls from chat-completion content, which is adjacent but may be a distinct case.
Open issues1
- Issue#22696BUG: tool_use parser fails intermittently when closing tag appears inside JSON strings
Open PRs1
- PR#23888fix(agent): replace fragile tool_call regex with brace-depth scanner for nested JSON
1 PR closed without merging
From the close comments: other 1
-
#23508 Recover inline XML tool calls from chat-completion content · other →
#22696,#23888
Closed issues · 1
- Closed#22688Bug: tool_use regex parser fails with nested JSON — blocks pass through as raw text
How this cluster was grouped
-
Link evidence (
partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text. - Members outside that structural core may belong to a different underlying problem.
-
Pairwise link density
0.39: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- acp
- Closed issues
- 1
- Attempts
- 1 PR closed without merging