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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mubit_langgraph-0.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d11df5d4556a1cc079335f7d759d19ed2988353a6f4e3efcf7a3c3e9e8de0d0f
MD5 556c21877cbe949dfca8d04cf70e1c21
BLAKE2b-256 42e897cf7aa5de9ec67db5e612df043e46ce46e3024fef0caab62edcb9c83a19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mubit_langgraph-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99d6e72f491e660186078cd07ad7804a8ce4af60f8a28ab4e3fb280456695f2a
MD5 00fed523fc67610bafb9fb449b84ca95
BLAKE2b-256 61068ebcd51bbeb1e6ff7594abe26894e30f67c16d3d211a78467a029a8b501e

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