Skip to content

Fix Hermes tool thinking capture order#1587

Merged
MatthewZhuang merged 4 commits into
mem-agent-0424from
mem-agent-0424-zgm
Apr 29, 2026
Merged

Fix Hermes tool thinking capture order#1587
MatthewZhuang merged 4 commits into
mem-agent-0424from
mem-agent-0424-zgm

Conversation

@MatthewZhuang
Copy link
Copy Markdown
Collaborator

Summary

  • Backfill Hermes tool calls from post_llm_call while preserving the LLM-declared tool order.
  • Merge post_tool_call outputs into LLM-derived tool placeholders and keep tool-specific thinking on tool cards.
  • Add regression coverage for missing post-tool hooks and out-of-order hook delivery.

Test plan

  • ruff check apps/memos-local-plugin/adapters/hermes/memos_provider/__init__.py apps/memos-local-plugin/tests/python/test_hermes_provider_pipeline.py
  • ruff format --check apps/memos-local-plugin/adapters/hermes/memos_provider/__init__.py apps/memos-local-plugin/tests/python/test_hermes_provider_pipeline.py
  • python3 -m unittest tests.python.test_hermes_provider_pipeline
  • npx vitest run tests/unit/web/tasks-chat.test.ts

Made with Cursor

@MatthewZhuang MatthewZhuang merged commit 57a7e12 into mem-agent-0424 Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants