The mental model
Quick Start
Inspect storage and ownership without involving a model. This example runs with@agentium/core@4.0.0 in an ESM TypeScript project:
Full Configuration
UnifiedMemoryConfig requires storage. The optional fields choose behavior; they are not a reason to enable every store at once.
See store configuration for typed composition. Vector and graph drivers have separate dependencies, credentials, and lifecycle responsibilities.
How It Works
Before a run, the memory manager builds context from enabled stores. Session history is a separate part of the model request. After a run, enabled extraction work can save new records. Extraction can incur model/embedding calls and finish asynchronously; drain owned work before closing resources. A saved record is not proof that a future model will follow it. Use deterministic application validation for rules that must hold. Inspect actual context and evaluate answers after memory changes.Simplified API
remember, recall, and forget are convenience methods with specific store coverage. They are not universal CRUD across every store. Read their supported behavior, especially before exposing recall or deletion through an API.