Skip to content

added hooks type for eve - #189

Merged
johnymontana merged 4 commits into
mainfrom
agent_memory_hooks
Sep 11, 2026
Merged

added hooks type for eve#189
johnymontana merged 4 commits into
mainfrom
agent_memory_hooks

Conversation

@prakriti-solankey

Copy link
Copy Markdown
Collaborator

This pull request introduces "hooks mode" as a new, fourth integration mode for the NAMS AI provider, enabling runtime-controlled, deterministic session memory. The documentation has been updated throughout to reflect this new mode, clarify how entity extraction works, and provide examples for all four integration modes. Two new example scripts demonstrate hooks mode and mode switching. The codebase has also been updated to support and document the new mode.

The most important changes are:

New Feature: Hooks Mode

  • Added hooks mode to NAMS, allowing the runtime (not the LLM) to restore and persist the session transcript around every generation for deterministic, production-grade memory. This includes new APIs (createNams(...).hooks(scope?)) and extensive documentation and examples
    Documentation Updates
  • Updated the README to describe all four integration modes (provider, middleware, tools, hooks), including a new section on hooks mode, its recommended use cases, and how it differs from tools mode

Examples

  • Added examples/hooks-chat.ts to demonstrate hooks mode in practice.
  • Added examples/mode-switch-chat.ts to show how to switch between all four modes at deploy time, with a shared memory backend.

Test and Build Updates

  • Updated test instructions and scripts to include the new hooks mode.

API and Type Changes

  • Updated types and exports to include hooks mode and its options, and to clarify the scope of entity extraction.

These changes provide a more flexible, production-ready memory integration for AI agents, with clear guidance and examples for each mode.

@rafaljanicki

Copy link
Copy Markdown
Contributor

It'd be good to support more advanced hooks e.g. like Claude has them

@prakriti-solankey
prakriti-solankey marked this pull request as ready for review September 10, 2026 13:48
@johnymontana
johnymontana merged commit fb9465b into main Sep 11, 2026
14 checks passed
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.

3 participants