Skip to content
AgenticAIWiki

← Chapter 56. Long-term stores

One agent, three long-term stores

tool callget / setsearch / saveview / editAgentsession for C-2201Narrow toolsowner = C-2201, in codeKey-value storeexact lookupsVector databasesearch by meaningMemory files/memories/notes.md

Swipe to change step

Step 1 of 8. A new session starts for customer C-2201. The agent never queries a store directly. It calls narrow tools, and the user id is enforced in code, so it can never read another user's memory. Agent (session for C-2201). Narrow tools (owner = C-2201, in code), highlighted. Key-value store (exact lookups). Vector database (search by meaning). Memory files (/memories/notes.md). arrow from Agent to Narrow tools, labelled tool call. arrow from Narrow tools to Key-value store, labelled get / set. arrow from Narrow tools to Vector database, labelled search / save. arrow from Narrow tools to Memory files, labelled view / edit.

Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.