Helps agents learn and adapt from their interactions over time
open sourceMITself-hostablefree
LangMem is LangChain's Python library for long-term memory in AI agents. It extracts important information from conversations, refines an agent's prompts from feedback to improve its behaviour, and keeps memories consistent across sessions. It offers a core memory API that works with any storage system, tools an agent calls to record and search memories during a conversation, and a background memory manager that extracts, consolidates and updates knowledge automatically, with native integration with LangGraph's long-term memory store.
Problems it solves
- give my LangGraph agent long-term memory across conversations
- let an agent save and search memories about a user during a chat
- extract and consolidate facts from conversations in the background
- improve my agent's prompt automatically from feedback
- personalise agent responses from past interactions
- memory primitives that work with my own storage
Features
- core memory API for any storage system
- memory management and search tools for agents
- background memory manager
- prompt optimisation from conversations and feedback
- native LangGraph long-term memory store integration
Capabilities
| Has official SDKs | plan not known |
|---|
Alternatives
The same job
These do what LangMem does.
- Mem0 The memory layer for AI agents
- Letta Build stateful agents with memory that can learn and improve over time
- Zep The enterprise context layer for reliable agents
- Hindsight Long-term memory for AI agents that learns from experience
- GBrain One brain for you and your company, read by every agent you use
- Honcho Memory infrastructure for building stateful agents
