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.0.tar.gz (12.7 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.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

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

Hashes for mubit_langgraph-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ac7b4faaeb04707e20e63115932423368a4d1ce0cfe058b18d4f98186abf40fd
MD5 dc1b136d2bb25b8d5b849015fb5e42da
BLAKE2b-256 e2ad5c88fdfd3e1b393f68a92629018f030a16097e57275fa8811cf848135a1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mubit_langgraph-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecb35b8d6d92fe1c169e52720a3ce3176001665c00c27201883548f10f86fc5b
MD5 d392eaaf56b6163cf45dca877365b3f0
BLAKE2b-256 f3be72e988ff44a714cea20e083e51d7f83a834197fb14b534d6857f1f3e228a

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