# NousResearch/hermes-agent · AIAgent chat()/main() KeyError on missing final_response

## Open now

- Nothing open on GitHub.

Members all concern AIAgent.chat() and main() raising KeyError('final_response') when run_conversation hits error or exhaustion paths. Several are proposed changes (using .get() or returning an empty string), and one appears to be the issue report; their outcomes are not stated here.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 0 merged PR(s), 4 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.40`: 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.

## Closed / duplicate issues

- #55822: AIAgent.chat() and main() raise KeyError('final_response') on run_conversation error/exhaustion paths

## Prior & competing PRs

- **#55821: fix(agent): chat()/main() raise KeyError('final_response') on run_conversation error paths**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `053424c4865db0e8cc6ef9a8c2f49bf8882afd45`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#55989: fix(agent): use .get() for final_response to prevent KeyError (#55822)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `053424c4865db0e8cc6ef9a8c2f49bf8882afd45`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#55880: fix(agent): handle missing final_response on error paths**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#55891: fix: AIAgent.chat() and main() return empty string instead of raising KeyError on run_conversation error/exhaustion paths**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `053424c4865db0e8cc6ef9a8c2f49bf8882afd45`

## Fix status

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