Skip to content
AgenticAIWiki
  1. Learn
  2. Part 10. Memory for agents
  3. Chapter 56

Long-term stores

4 lessons · 16 min

One agent, three long-term stores

Full screen
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.

In this chapter

  1. 56.1Vector databases4 min read
  2. 56.2Key-value and relational stores4 min read
  3. 56.3File-based memory: project memory files and memory tools4 min read
  4. 56.4Choosing a store4 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…