mnem-langgraph
A LangGraph BaseStore backed by
Mnemosyne. The agent's long-term memory
gets history: every put is a commit, and you can ask why a memory says what
it does, or branch to test a hunch.
from mnem_langgraph import MnemosyneStore
store = MnemosyneStore("./agent-memory") # one .mnem store
store.put(("memories", "u1"), "plan",
{"tier": "enterprise", "_meta": {"source": "ticket-4821"}})
item = store.get(("memories", "u1"), "plan") # -> Item
hits = store.search(("memories",), query="enterprise")
blame = store.why(("memories", "u1"), "plan") # which commit, and from where
Pass it to a graph the usual way (builder.compile(store=store)), or use it
directly from a node.
Mapping
- namespace + key -> node id
":".join([*namespace, key]). A":"inside a segment is not supported. - value -> node content. A reserved
_metakey (source/step/observation/tool_call/note) is lifted into provenance soblameworks; it is stored too, sogetround-trips. searchis a plain substring (query) and equality (filter) match, not semantic. Wrap a vector store if you need ranking.- Async (
aget/aput/asearch) runs the sync path in a worker thread.
Extra methods
Not on the BaseStore interface, for a graph node to call: branch(name),
switch(target), why(namespace, key), history(limit=...).
See ADR-0016.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mnem_langgraph-0.0.1.tar.gz.
File metadata
- Download URL: mnem_langgraph-0.0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cf3ed7a1244277c513c476058a368c1c495a81cedb45241bf7cc94a82f17471
|
|
| MD5 |
31314546912a159508c5a86c4e6fee09
|
|
| BLAKE2b-256 |
603c1d5deca85c65d9662260f5e60f0cb838fb7fe431ec436db1ebcbdd5b94c3
|
File details
Details for the file mnem_langgraph-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mnem_langgraph-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8699bc7d3c26ef6241b4b38a2aad640e185c2f66c3f17275afe2d22e749f0228
|
|
| MD5 |
107e8aa86f0199dc408eb6d48733e4c9
|
|
| BLAKE2b-256 |
6505aa59e0eed0f73da10c6c3ecabf9597ba5f7d8602aba24a0e194413ac79a9
|