NousResearch/hermes-agent

Strip unsupported kwargs before Anthropic Messages calls

Cluster 31673 · agent. Data as of

Nothing open on GitHub. Fix merged in #42155 on 8 Jun 2026. Check it covers your case.

The short answer

0open issues
0open PRs
3items grouped
Known?
Yes. 3 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #42155. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #42155. That is separate from the fix event.
Still open
Nothing open on GitHub.

These items address a bug where Responses-API-only keyword arguments (such as 'instructions') were incorrectly passed through to the Anthropic Messages SDK, causing unexpected keyword argument errors. Fixes target the call sites to strip those kwargs before invoking Messages or stream().

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #42155 fix(anthropic): strip Responses-only kwargs before Messages SDK call (#31673)

    merged to main

    files: agent/anthropic_adapter.py, agent/chat_completion_helpers.py, run_agent.py, tests/agent/test_anthropic_kwargs_sanitize.py

1 PR closed without merging

From the close comments: done elsewhere 1

  • #31746 fix(anthropic): strip Codex/Responses-only kwargs at Anthropic call sites (#31673) · done elsewhere → 399b8ee, #42155, #31673
Closed issues · 1
  • Closed#31673Messages.stream() got an unexpected keyword argument 'instructions'` when continuing from a successful `vision_analyze` aux call
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.67: the share of item 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.

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 Lab

At a glance

Subsystem
agent
Merged PRs
#42155
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
8 Jun 2026

For your agent

The same facts, typed.