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.6.0.tar.gz (12.6 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.6.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mubit_langgraph-0.6.0.tar.gz
  • Upload date:
  • Size: 12.6 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.6.0.tar.gz
Algorithm Hash digest
SHA256 c314788da4e7dffc1e1448eb4ec2c04764708160ea45c1ead640353bef92d4fb
MD5 9e65a92fbbd4b6229995e6a0b2b65d20
BLAKE2b-256 785812e9f0c5435848c0daae7fdfc1fe68f8efd6a688ac6899d4d853e33d7238

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mubit_langgraph-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09f6b5288d6fb45dd0aa397c0796263bc4a92898a60719dfe6f03dae2d48d679
MD5 d3c46ddf3f3455cb27109018f69d97b7
BLAKE2b-256 2b1fac9c4fefdcb412bddbf1e944398f2a312fb7021c829a2ec0caaa3ee28157

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