Skip to main content

Drop-in Anthropic client with MADB causal memory. One import, every turn persisted.

Project description

madb-anthropic

Drop-in Anthropic client with automatic MADB causal memory. One import, every turn persisted.

# Before
# from anthropic import Anthropic

# After
from madb_anthropic import Anthropic

client = Anthropic(tenant_id="my-agent")
# Every client.messages.create() call now:
#   1. Recalls relevant prior memories (composite-scored),
#   2. Prepends them to the system prompt,
#   3. Calls Anthropic as usual,
#   4. Persists the turn with caused_by set to the strongest recalled memory.

No other code changes. See the monorepo's examples/basic_usage.py for a runnable demo.

Install

pip install madb-anthropic

Depends on:

  • anthropic>=0.40
  • meta-agents-db>=0.2 (the MADB engine wheel)

Both are pulled in automatically by pip.

Environment variables

Variable Default Purpose
MADB_TENANT_ID "default" Tenant isolation key. Use one tenant per long-running agent identity, not per session.
MADB_DATA_DIR ~/.madb/data Local engine storage directory.
MADB_API_ENDPOINT (unset) Reserved. When the hosted MADB API launches, set to route writes/reads to the managed tier. Currently emits a one-shot warning and falls back to local mode.
MADB_API_KEY (unset) Reserved. Paired with MADB_API_ENDPOINT above.

License

Meta-Agents.AI Proprietary License v1.0.

  • You may install and run this client in your own infrastructure for your own users.
  • You may not redistribute, reverse-engineer, or offer it as a hosted service to third parties.
  • Source code is not public. The wheel ships compiled binaries only.
  • For source access, OEM / embed rights, or hosted-service rights: 01@meta-agents.ai.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

madb_anthropic-0.2.6-cp313-cp313-win_amd64.whl (81.1 kB view details)

Uploaded CPython 3.13Windows x86-64

madb_anthropic-0.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (603.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.6-cp313-cp313-macosx_11_0_arm64.whl (86.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_anthropic-0.2.6-cp312-cp312-win_amd64.whl (81.2 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_anthropic-0.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (602.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.6-cp312-cp312-macosx_11_0_arm64.whl (88.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_anthropic-0.2.6-cp311-cp311-win_amd64.whl (84.1 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_anthropic-0.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (623.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.6-cp311-cp311-macosx_11_0_arm64.whl (89.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_anthropic-0.2.6-cp310-cp310-win_amd64.whl (83.2 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_anthropic-0.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (584.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.6-cp310-cp310-macosx_11_0_arm64.whl (90.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file madb_anthropic-0.2.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b2a836bf5bb2df699244170d3945935e1d989aae2304b7d21d9a134d80ed4c14
MD5 09910ed7164af7db6484cd708c708211
BLAKE2b-256 83c2952ad838ac028c67651d557c2f38476c39c91fe0145b904c8c33bc1303e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp313-cp313-win_amd64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b9db252fc7fb2ba3a049d9c447e04ef6b4e67a12b7e3254a35bcb5ccfa8dafa8
MD5 2ba01e8e0d9c410638891e2acb831156
BLAKE2b-256 7d97def2f26b8836a5c50824ba01a1a6effcf9d55dfdd376be4ecb1c076fffff

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a62f6ada1aa62ee52d7889fd66cd21ac34a2fc8f15d2a6b62103fc6a21f3bad2
MD5 586f8b6a9df6df6e9a82a381041326e4
BLAKE2b-256 b8b4ba4053e19f1af0847502e666730dfdb72ea16672e7ba436addd30db772b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ea7811d79e6c53210a04f6a0b71b9b2d31308dfcf30dd2de37a09fdf2aab0402
MD5 65133f332ceacc82be44b49fb587a71c
BLAKE2b-256 9fbf00b0be2b3d82771c85628241c609cf216ea477880220b8d0612dec04abdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp312-cp312-win_amd64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d33b5ec03fcb42cff025387c843e3c1d70574f0e95651177c0ea70aa0b17517d
MD5 a287b65b0056cdb79e8814b2f154797c
BLAKE2b-256 a001c2dfb5076e7eeac702aeebef9f7f97ffff6fc7847bcecfd8328e509dc59a

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c8bd669b8293974560719b46535a4394f57fe68cba7b92cbc37df309fefb4b1
MD5 994764b979b0780fb17dc1a394e959e0
BLAKE2b-256 f10ca175d60ab6db486d3b16faaa4b84bd69993cba2f64a6cd184cd665dbf037

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 45a333c32656e7b908ae46a2ec579dd762d6deca9cdb1edd049bb89e0268e0ba
MD5 059736ee71b9b2344dc9a727f8de2ad3
BLAKE2b-256 2e7fdea189f1aa43d4c9e3568451e34e6dc45aeb4c7ee48eb9120df3b51b67e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp311-cp311-win_amd64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5921c3d196cf2d37589fc0cf94b567eab607fc873501963922cf66e9011732ac
MD5 1631fb4120d4b64b1336adf527d0b122
BLAKE2b-256 52d51c0042159c6f995e00ceb1d1d66d85adb905a48722e01c7060709b092f7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb8ab7076cd20342a6dfcf26bf9b0b3a3276d769382573d0ca760e1e25d9b407
MD5 45f03531bdd9a8c31524901cd0f0bf0a
BLAKE2b-256 123455903585f591833f5f6de93222bae9c8c7bdca7ba4bb63f2017b3727a3bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 098860ea9468e3403761b4ec960bb67e565e7389144b653d592d21e21031fafc
MD5 f5a804e5a301ee851df842a969b6de6b
BLAKE2b-256 8b19bd3d419dcb921da7f6a24e78dc311cb20b6fad105dac4102cac2b7bdec8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp310-cp310-win_amd64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0a28c12bf1b9a1d35113dfa44a681c7f14c6a54cace49eedd75839023ad1db0f
MD5 890b4a2244fe76f7a8f71f70a579d909
BLAKE2b-256 f51cece274f098d7decf41009b3690588ccc5b04186c5dea1c45b193dd1c7ffe

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 582fe09faa60eb6cbc0141f898e60c7f2aa6c27d67074a841fd3cd4db36e08a2
MD5 f4fe011cbf5850a04ba78eaa55ca7d11
BLAKE2b-256 cf323baddc3b39b6cee060cff40794c76b419464d6b948fc77e141fa36972471

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.6-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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