LangMem
by LangChain
Official listing: built and published by LangChain. More from LangChain
Open-source Python library from LangChain that gives agents long-term memory: extract and consolidate memories, memory tools for the hot path, and LangGraph store support.
Use it now
Keep it with up to 9 other tools you're setting up, then share them all as one link.
Try this first
Ask your coding agent:
- Extract Memories in Background
Use LangMem to automatically extract an agent's knowledge: ‹what you need›
Call the API
Auth None needed
Its page: langchain-ai.github.io/langmem
Compare
Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.
- Access
- API
- Auth
- None
- Skills
- 3
Skills
Manage Memory Tools
Give an agent tools to record and search memories during a conversation, persisted in LangGraph's store.
Extract Memories in Background
Automatically extract, consolidate and update an agent's knowledge from conversations in the background.
Optimize Agent Prompts
Refine one or several agent prompts from conversation feedback so behavior improves over time.