Agent Memory
Add persistent memory to your AI agents with remember, recall, correct, and thread turns.
Install the SDK
Memory is part of the TypeGraph SDK. Self-hosted memory uses the same adapter, embedder, and LLM setup as graph extraction; no public memory bridge constructor is required.
Initialize TypeGraph
Cloud initialization binds the client to your customer tenant. Self-hosted initialization wires the vector store, ingest embedder, optional search embedder, and LLM.
Remember
memory.remember() stores durable private memory. Put actor identity under context; TypeGraph derives a private memory graph that extends public by default.
Recall
memory.recall() searches the caller’s private memory graph and inherited public graph context.
Correct
memory.correct() applies natural-language updates while preserving provenance. Enable graphExtraction when corrections should affect the derived private graph as well as memory state.
Track Thread Turns
Threads are ordered containers. A turn has the standard { role, content, timestamp, metadata } shape and is internally stored as a linked event for provenance and extraction.
Search Memory With Documents
search() can retrieve memory, documents, threads, events, entities, and facts together. Use resources to choose result families and weights to tune scoring.