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.2.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.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mubit_langgraph-0.5.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c6679189397811daf4b2c59bb79d1b5562bcd99f310ee6e0a369b42aaed2bcb4
MD5 305c2cf8b56d87c5adc5c3cea69632ac
BLAKE2b-256 096f30df0aec89d66fadd5c82744b151fd5ad1112c14a279ce8c57a969b543a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mubit_langgraph-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 92b7493363810b28d3c0a335b70e6b7f4a1339ea0df22a164049c175078ff401
MD5 b35750fc1bd6bff102c62b535daf9a9e
BLAKE2b-256 d1a5d30dc548ea117bcbee9f5539e16fd5779462fc1686dbcbb4109196b15ccc

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