LangMem is LangChain's library for agents that learn from conversations and keep long-term memory. It has a core memory API that works with any storage, in-chat memory tools, a background memory manager that extracts and updates memories, and native integration with the LangGraph memory store.
Install with pip install -U langmem and set an API key for your LLM provider, then add its memory tools to a LangGraph agent. MIT licensed.