LangGraph BaseStore adapter backed by MuBit memory engine
Project description
mubit-langgraph
LangGraph BaseStore backed by MuBit.
This adapter now uses the canonical Python SDK transport internally instead of raw httpx, while preserving the LangGraph store interface and adding MuBit-specific helpers for MAS and long-running coding-agent loops.
Install
pip install mubit-langgraph[langgraph]
Basic usage
from mubit_langgraph import MubitStore
store = MubitStore(
endpoint="http://127.0.0.1:3000",
api_key="mbt_...",
)
store.batch(
[
PutOp(
namespace=("memories", "user-1", "session-1"),
key="deploy-note",
value={"text": "Canary before rollout.", "intent": "lesson"},
)
]
)
Namespace mapping
| Namespace | MuBit scope |
|---|---|
("memories",) |
global |
("memories", user_id) |
user-scoped |
("memories", user_id, session_id) |
user + session scoped |
Store behavior
PutOpwrites through MuBit control ingest withupsert_keyGetOpandSearchOpuse MuBit control query- evidence metadata is normalized from current MuBit response fields
- namespace listing remains local-cache based
- single-item delete remains a no-op because MuBit deletion is explicit and scope-based
MuBit extension methods
Existing MAS helpers:
checkpoint()record_outcome()surface_strategies()
Current observability and coordination helpers:
get_context()memory_health()diagnose()archive()dereference()register_agent()list_agents()handoff()feedback()
Config
| Parameter | Default | Purpose |
|---|---|---|
endpoint |
http://127.0.0.1:3000 |
MuBit HTTP endpoint |
api_key |
"" |
MuBit API key |
For tests or custom embedding, you can inject mubit_client directly.
Development
PYTHONPATH=sdk/python/mubit-sdk/src:integrations/python \
python3 -m unittest integrations.python.mubit_langgraph.tests.test_store -v
License
Apache-2.0
Project details
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 mubit_langgraph-0.5.0.tar.gz.
File metadata
- Download URL: mubit_langgraph-0.5.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac7b4faaeb04707e20e63115932423368a4d1ce0cfe058b18d4f98186abf40fd
|
|
| MD5 |
dc1b136d2bb25b8d5b849015fb5e42da
|
|
| BLAKE2b-256 |
e2ad5c88fdfd3e1b393f68a92629018f030a16097e57275fa8811cf848135a1f
|
File details
Details for the file mubit_langgraph-0.5.0-py3-none-any.whl.
File metadata
- Download URL: mubit_langgraph-0.5.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecb35b8d6d92fe1c169e52720a3ce3176001665c00c27201883548f10f86fc5b
|
|
| MD5 |
d392eaaf56b6163cf45dca877365b3f0
|
|
| BLAKE2b-256 |
f3be72e988ff44a714cea20e083e51d7f83a834197fb14b534d6857f1f3e228a
|