Skip to main content

NVIDIA NeMo Agent Toolkit + Memanto

NVIDIA NVIDIA NeMo Agent Toolkit builds agent workflows from YAML. Its memory module accepts pluggable backends. nemo-agent-toolkit-memanto registers Memanto as one of those backends, _type: memanto. It works with the toolkit’s automatic memory wrapper and with its built-in memory tools, with no other code changes.

Automatic memory

With auto_memory_agent, every user message is saved, relevant memories are recalled before the agent answers, and replies are saved.

Memory tools

add_memory, get_memory and delete_memory let the agent decide when to save, recall or forget.

One agent per user

Each user’s memories live in their own Memanto agent, so recall never crosses users.

Facts, not transcripts

Conversation turns are distilled into typed facts, preferences and decisions. Small talk stores nothing.

How It Works

Each user maps to the agent <agent_prefix>_<first 32 hex characters of sha256(user_id)>, so user IDs never appear in agent names. Searching or deleting for a user who has no memories returns nothing and creates no agent.

Prerequisites

  • Python 3.11, 3.12 or 3.13
  • NeMo Agent Toolkit (nvidia-nat-core) 1.8 or later
  • Memanto 0.2.28+, installed automatically, and a Moorcheh API key, or an on-prem Memanto backend
  • nvidia-nat-langchain for auto_memory_agent and the ReAct agent

Install and configure

1

Install

Install into the same environment as nvidia-nat-core:
Check that the toolkit finds it:
2

Set your key

If it isn’t set, the key saved by memanto setup is used. The on-prem backend needs no key.
3

Add the memory backend

Configuration

Automatic memory

Wrap any agent in auto_memory_agent. The user identity comes from the toolkit runtime, so each user gets their own memory without passing an ID.
config.yml
This example uses an NVIDIA NIM model, so also set NVIDIA_API_KEY:
The first turn stores memories such as “User is vegetarian.” and “User lives in Toronto.”. The second turn recalls them before the agent answers.
auto_memory_agent requires a description, and the ReAct agent requires at least one tool. Leaving either out makes the config fail validation.

Memory tools

To let the agent choose what to remember, give it the toolkit’s memory tools:
A fixed user_id suits a single-user deployment. For multiple authenticated users, set a trusted user_id_resolver instead.
Tool-level user_id and user_id_resolver need NeMo Agent Toolkit 1.9 or later. On 1.8, leave them out: the agent passes user_id in each tool call.

Inspect what a user’s agent knows

Memories are ordinary Memanto memories, so you can read, correct and audit them with the CLI or the web UI. To find a user’s agent:

Behavior and limits

In minimal container images, install the system CA certificates, for example apt-get install ca-certificates. Without them, calls to the Moorcheh API fail with CERTIFICATE_VERIFY_FAILED.

Next Steps