# NousResearch/hermes-agent · Agent tool-call sanitization and delegate task limits

## Open now

- 1 issue, 1 PR open on GitHub.
- #30405: \[Bug\]: Truncated delegate_task is unkown to the model.
- PR #31615: fix(agent): normalize empty tool-call content for strict chat APIs

These issues and PRs address malformed or empty tool_call payloads causing API errors across providers, and problems with delegate_task silently truncating batch tasks beyond concurrency limits without surfacing the truncation to the model.

## TL;DR

- 8 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 6 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.25`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #30405: \[Bug\]: Truncated delegate_task is unkown to the model.

## Prior & competing PRs

- **#12737: fix(agent): normalize empty assistant content to None for Anthropic compatibility**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#29168: fix(agent): merge consecutive assistant tool_calls before orphan-tool drop (#29148)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `cbe397ef458bc715ce82451e722ee0e45a67687e`, `#55603`, `#29148`, `#49147`, `#49162`, `#34510`
- **#30472: fix(agent): surface delegate_task truncation to the model and document the per-turn cap**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#31615: fix(agent): normalize empty tool-call content for strict chat APIs**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#31615`, `#31582`, `#31175`
  - files: `agent/reasoning_params.py`, `agent/transports/chat_completions.py`, `tests/agent/test_partial_stream_finish_reason.py`, `tests/agent/transports/test_chat_completions_empty_tool_call_content.py`
- **#64345: fix(sanitize): drop tool_calls key when dedup removes all calls**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#86654`, `#77944`, `#72591`
- **#64843: fix(agent): prevent empty tool_calls arrays to fix DeepSeek V4 HTTP 400 errors**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#86654`, `#64345`, `#77944`, `#72591`
- **#128991: fix(agent): return paired errors for capped delegate calls**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
