hermes-agent/website/docs/guides
Teknium 455bf2e853
feat: activate plugin lifecycle hooks (pre/post_llm_call, session start/end) (#3542)
The plugin system defined six lifecycle hooks but only pre_tool_call and
post_tool_call were invoked.  This activates the remaining four so that
external plugins (e.g. memory systems) can hook into the conversation
loop without touching core code.

Hook semantics:
- on_session_start: fires once when a new session is created
- pre_llm_call: fires once per turn before the tool-calling loop;
  plugins can return {"context": "..."} to inject into the ephemeral
  system prompt (not cached, not persisted)
- post_llm_call: fires once per turn after the loop completes, with
  user_message and assistant_response for sync/storage
- on_session_end: fires at the end of every run_conversation call

invoke_hook() now returns a list of non-None callback return values,
enabling pre_llm_call context injection while remaining backward
compatible (existing hooks that return None are unaffected).

Salvaged from PR #2823.

Co-authored-by: Nicolò Boschi <boschi1997@gmail.com>
2026-03-28 11:14:54 -07:00
..
_category_.json docs: add Guides & Tutorials section, restructure sidebar 2026-03-08 19:37:34 -07:00
build-a-hermes-plugin.md feat: activate plugin lifecycle hooks (pre/post_llm_call, session start/end) (#3542) 2026-03-28 11:14:54 -07:00
daily-briefing-bot.md docs: clarify gateway service scopes (#1378) 2026-03-14 21:17:41 -07:00
python-library.md docs: add Guides & Tutorials section, restructure sidebar 2026-03-08 19:37:34 -07:00
team-telegram-assistant.md docs: clarify gateway service scopes (#1378) 2026-03-14 21:17:41 -07:00
tips.md docs: fix stale and incorrect documentation across 18 files 2026-03-24 07:53:07 -07:00
use-mcp-with-hermes.md docs: fix MCP install commands — use uv, not bare pip 2026-03-18 03:14:58 -07:00
use-soul-with-hermes.md docs: document SOUL.md as primary agent identity (#1927) 2026-03-18 04:18:08 -07:00
use-voice-mode-with-hermes.md docs: quote pip install extras to fix zsh glob errors (#2815) 2026-03-24 09:25:01 -07:00