Overview
Memory enables agents to remember conversations and learn about users across sessions. It maintains chat history, generates summaries, and builds user profiles for personalized interactions.Installation
Memory requires a storage backend to persist data. Choose the storage option that fits your deployment needs.Example: Setting up Memory with SQLiteFor local development and testing, use SQLite storage:Other storage options:
[redis-storage]- Redis for distributed, high-performance systems[postgres-storage]- PostgreSQL for production, multi-node deployments[mongo-storage]- MongoDB for document-based, scalable systems[mem0-storage]- Mem0 Platform integration
Key Features
- Conversation History: Persist complete chat history across sessions
- Session Summaries: Auto-generate condensed conversation summaries
- User Profiles: Extract and learn user traits from interactions
- Multiple Storage Backends: SQLite, Redis, PostgreSQL, MongoDB, or in-memory
- Sync & Async Support: Both synchronous and asynchronous storage operations
- HITL Checkpointing: Automatic checkpoint saving for Human-in-the-Loop resumption
Quick Start
Memory Types
| Type | Purpose | Requires |
|---|---|---|
| Conversation Memory | Full chat history persistence | session_id |
| Summary Memory | Condensed session summaries | session_id, model |
| User Analysis Memory | User profile extraction | user_id, model |
Storage Backends
| Backend | Use Case | Persistence |
|---|---|---|
SqliteStorage | Local development, single-node | File-based |
RedisStorage | Distributed, high-performance | In-memory + optional persist |
PostgresStorage | Production, multi-node | Database |
MongoStorage | Document-based, scalable | Database |
InMemoryStorage | Testing, ephemeral | None |
Navigation
- Memory Attributes - All configuration options
- Choosing Memory Types - Select the right memory for your use case
- Storage Tables - What data is stored
- Memory Types - Conversation, Summary, User Analysis
- Storage Options - Backend configuration
- Examples - Working examples

