retain

Inside retain(): What Actually Happens When Your Agent Remembers
Calling retain() is one line of code. Underneath, a sentence becomes extracted facts, resolved entities, a knowledge graph, and consolidated observations. Here is the whole write path.

Structuring Chat Logs for Agent Memory
The shape of your chat logs decides your agent's memory quality. Retain whole conversations, label who is speaking, set context, and anchor in time.