Retain
Capture what your agent learns
Store memories as text, files, or URLs. Embeddings, entities, and links are computed on ingest — so the next session starts with context, not from zero.
- Your agent finishes a session and needs to remember user preferences for the next one.
- Rather than stuffing everything into the context window, you call retain with typed memory blocks.
- CogniMemo computes embeddings, entities, and links on ingest — ready for recall in the next turn.
- Each bank is strictly isolated — keys never leak across projects or users.
await cm.retain({
bank: "user@acme.com",
text: "Prefers concise PR summaries",
type: "preference",
});“Our agents are finally context-aware across sessions.”