Skip to main content

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 _meta key (source / step / observation / tool_call / note) is lifted into provenance so blame works; it is stored too, so get round-trips.
  • search is 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.

Metadata

Release files for mnem-langgraph 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mnem-langgraph 0.0.1
File Size Uploaded Provenance Actions
mnem_langgraph-0.0.1.tar.gz 5.3 kB Without provenance Details for mnem_langgraph-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mnem-langgraph 0.0.1
File Interpreter ABI Platform Actions
mnem_langgraph-0.0.1-py3-none-any.whl Python 3 none any Details for mnem_langgraph-0.0.1-py3-none-any.whl

Total release size: 10.2 kB

Release files / mnem_langgraph-0.0.1.tar.gz

Download URL mnem_langgraph-0.0.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2cf3ed7a1244277c513c476058a368c1c495a81cedb45241bf7cc94a82f17471
BLAKE2b-256 checksum
How to use checksums
603c1d5deca85c65d9662260f5e60f0cb838fb7fe431ec436db1ebcbdd5b94c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / mnem_langgraph-0.0.1-py3-none-any.whl

Download URL mnem_langgraph-0.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8699bc7d3c26ef6241b4b38a2aad640e185c2f66c3f17275afe2d22e749f0228
BLAKE2b-256 checksum
How to use checksums
6505aa59e0eed0f73da10c6c3ecabf9597ba5f7d8602aba24a0e194413ac79a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Security for mnem-langgraph 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page