Skip to main content

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

  • PutOp writes through MuBit control ingest with upsert_key
  • GetOp and SearchOp use 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

mubit_langgraph-0.5.3.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mubit_langgraph-0.5.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file mubit_langgraph-0.5.3.tar.gz.

File metadata

  • Download URL: mubit_langgraph-0.5.3.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for mubit_langgraph-0.5.3.tar.gz
Algorithm Hash digest
SHA256 af9efbfa42fa64842cd622a40f6b10bc85d0a8974e17015005724496ef7b4d73
MD5 d58994a22d76f8c88f5fffc6757f8f39
BLAKE2b-256 9a961a7052df0bbf8417e1794b0f8ef749cd7b377e7f4873187738deb8b45e48

See more details on using hashes here.

File details

Details for the file mubit_langgraph-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mubit_langgraph-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37cdaae1e6a285a45d4668cad0950f0753189f1d773115a905e5c33edebe689b
MD5 a95d75feaa5268f64e746142747e4bba
BLAKE2b-256 ca70d0ea04e57d138f37e6a3e6f639d011267ba8e4ef3a224d40b58e9212e533

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page