Add Long-term Memory to Your Agent
3.1 · Lesson

Add Long-term Memory to Your Agent

Short-term memory is a transcript. Long-term memory is a graph of what the agent knows: entities, facts, and preferences, connected so it can Full definition for traversal (opens in a new tab)Following relationships from one node to the next to reach other parts of a graph. between them.

Your agent already writes into it. Every add_message call extracts entities from the text and links them into the graph.