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.1.0-cp313-cp313-win_amd64.whl (67.4 kB view details)

Uploaded CPython 3.13Windows x86-64

madb_anthropic-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (474.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_anthropic-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (70.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_anthropic-0.1.0-cp312-cp312-win_amd64.whl (67.7 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_anthropic-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (473.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_anthropic-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (72.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_anthropic-0.1.0-cp311-cp311-win_amd64.whl (71.0 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_anthropic-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (488.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_anthropic-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (72.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_anthropic-0.1.0-cp310-cp310-win_amd64.whl (70.8 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_anthropic-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (454.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_anthropic-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (74.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e60164e05bf57b8625ca4bfc4666db034086a50d172ab3565af99b4d0e3d8b20
MD5 30de6b7b5263e08e11eea7301c3e083b
BLAKE2b-256 dbd77c7d28f8bb02eb5a78882cf33a640068216c2421e8c1a7433544ea4c2ab6

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37799df8870403eb1981a428ae53cf9731f3ffa0199629a8c138638705f223ea
MD5 d0bf2b6f268a2608f1f8f8def142cf41
BLAKE2b-256 5f36c9f80b5ce3d81a3e527a26bc8c72ce5cbf583e3453af77eec5d62428cfc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b80aff7aaa812fbc239be382839d1285a42f05d5eca37b82a6916380b5d696aa
MD5 3751dffb6a24e4a0c5cdb6f3fbad0a35
BLAKE2b-256 9af40d0d27faae8ff8071ff89640c65505190c0dbb464c8dc79a451f57e2da84

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 102b451c76d670d1bbfe07aa44c91008a8066860a5fe16c14d0581bf33ca8c1c
MD5 d9d0d09680c47c6cc1e5dc671d90b875
BLAKE2b-256 2c1ecd0a64dd8c4654d223b7f71f2a59984be2e7919270a52848cfd3a3c9a054

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62f19818416b716fe94adda120f0e9b58145830817e94c4cefde670e3b1d9e8d
MD5 64bc6af47c1c0c748af7c6b1a7dc28d5
BLAKE2b-256 4823fb60488e19f338b71b4ef1bd167d40c594733d54cccbe9b6e3474b486964

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 644962befb4bc64bcf7cac48cbefb8efb2fa01824b62a43d798e3afa2fae2efa
MD5 0b365b9f35727c94ca123dae6ede6fe9
BLAKE2b-256 5dbcae443d315cf214940c436bb69f41ca305b423f3eae132d2b809d5833236b

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9c1931453f82236394da205d7e600f9acfff6f5758d44ee8b09d5b8f3cbc0c3d
MD5 12c104ceaa92f1e38ccbfffe5b24ed6d
BLAKE2b-256 237625c002599b8ebb667da476f637ad7072da3d30b3382a802b2e5cf49916bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ebd4428a2342ee03493abf0046de768402af3b4ee8feeafc5748c8ab56b52a5d
MD5 b4ef403cc5f7717831b4263b7c99bd38
BLAKE2b-256 53ff8467458ab7987a04cd7db57c8ca44cbfa33029ef1fff3e6f30d35999c2d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5daf6f52ff218849ae9ee2516396cae819cac876961915011bd4c251a2c5e987
MD5 5c8c7deb0665d3e131dc132105004037
BLAKE2b-256 09875bb902242aa0784b582667369a1d751b5ee745e53b2f102edecfddf4c483

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 505b1f731c60914a4fffdab121fed3ae890a849f6f508577d402148ec3b2287a
MD5 5ffb136c77dc182f63ec0d8e8efd3424
BLAKE2b-256 7d54c528a484727bcfb8eed4f7bec2230c6dda5652d82cd6eeef98d0cb4358ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37e9e242fc2cc175c8fbc2bab2e64da3e22c9915971e5c30fc9639267b1ac9c9
MD5 bbcbd219c16cf9fb29e01cdcf3ec6fdf
BLAKE2b-256 1c8b4e546e017fa2223db9188f8f6d41684182bd6d3a4f5a85c918bf8ffbc8e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9dcc851c00336df611082a826e09cef1f15ceafdba87be7a21040dacd088d2ba
MD5 a765887e61d44a4b5abfd35eb6da9d98
BLAKE2b-256 29fc2c7302ab3662f5d5ec755c980292bb0c0d6d4821626a7e0b079fad307e5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.1.0-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