Skip to main content

Google ADK BaseMemoryService adapter backed by MuBit memory engine

Project description

mubit-adk

Google ADK BaseMemoryService backed by MuBit.

This adapter now uses the canonical Python SDK transport internally instead of raw httpx, while preserving the ADK memory-service contract and adding MuBit-specific helpers for checkpointing, observability, and multi-agent coordination.

Install

pip install mubit-adk[adk]

Basic usage

from mubit_adk import MubitMemoryService

memory = MubitMemoryService(
    endpoint="http://127.0.0.1:3000",
    api_key="mbt_...",
)

await memory.add_session_to_memory(session)

response = await memory.search_memory(
    app_name="deploy-agent",
    user_id="user-1",
    query="What rollout guidance do we have?",
)

ADK to MuBit mapping

ADK concept MuBit mapping
app_name agent_id
user_id user_id
session.id run_id
session/event ingest control ingest items
search_memory() control query

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 advanced embedding, you can inject mubit_client directly.

Development

PYTHONPATH=sdk/python/mubit-sdk/src:integrations/python \
python3 -m unittest integrations.python.mubit_adk.tests.test_memory_service -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_adk-0.5.1.tar.gz (11.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_adk-0.5.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mubit_adk-0.5.1.tar.gz
Algorithm Hash digest
SHA256 fef05a2546e8bdd928d165fe20b803b2245279b39f95111240e3b9464ce23003
MD5 2c4175a9e7df5b774a1b7ca3acf7e180
BLAKE2b-256 c1a3bdd250676e26c57f958cbc580db3a5df6176b0d01d88c0a93262d9b9c889

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mubit_adk-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for mubit_adk-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b64b90592ec416b7e72148008affd0926580d0d6f09eae993b8c571940ebbd8
MD5 b3ca18f8ec0b47bcc4a8c4d1f3a9e2bd
BLAKE2b-256 8c4dc9f180f9951670a4b2ad8625a3847e081e576838798c612c9e8cdce13568

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