Skip to main content

agentmemory-mds

This read-only adapter maps an authenticated MDS owner to an explicitly configured native owner. Supply a native JSON configuration through AGENTMEMORY_CONFIG_JSON. Use profile: read_only, owner: {"mode":"per_request"}, a Neo4j store, and an embedding endpoint. See the native contract.

Start a fresh private deployment with agentmemory-mds setup as shown below. It records the tenant, authentication middleware and owner mappings together. In owners.json, each entry in the owners array maps a unique tenant, issuer and subject tuple to a unique native_id.

User and canary native IDs must be nonblank and fit in 256 UTF-16 code units. Configure HTTPS for a remote embedding endpoint that uses an API key. Localhost and loopback IP addresses also accept HTTP.

A guest has no personal native lookup. Set the deployment's prepare_timeout_ms to a measured budget for its embedding and database services. A missed deadline falls back to ordinary speech. Diagnostics for successful configuration establish settings validity; opening the running provider additionally checks native capabilities. Credentials stay in the deployment environment.

Setup in a fresh environment

For version 0.1.0, use Python 3.11 or later on a platform supported by agentmemory-native. In the speech server's environment, run:

python -m pip install agentmemory-mds
speech-mds providers describe agentmemory --json

The installation brings in speech-mds and the native reader. Install the hook-enabled speech host and your deployment's authentication middleware in that environment. Configure AGENTMEMORY_CONFIG_JSON in the environment used by both setup and the running service. Its embedding.model, embedding.dimensions and embedding.endpoint.url must describe the model used to index the store. The store operator provisions the schema and any test data separately.

agentmemory-mds setup --owners owners.json --tenant museum --auth-distribution museum-auth --auth-entry staff --canary canary.json --warmup --json
agentmemory-mds doctor --live --require-canary --json
speech-to-speech serve

For example, owners.json can contain {"owners":[{"tenant":"museum","issuer":"staff","subject":"sample-user","native_id":"sample-native-user"}]}. The separate canary.json contains {"native_id":"speech-health","query":"What is the readiness marker?","marker":"canary-73"}. Seed that expected fact under a dedicated synthetic native owner. Setup rejects collisions with user mappings. Omit both canary flags for a deployment without a known test record. Use --install-models to fetch a missing embedding model from a local Ollama instance. Existing models are reused. Speech recognition, conversation and synthesis are configured by the host.

Setup probes the embedding model and native reader before activating the profile. MDS validates the private tenant and authentication policy under its configuration locks. Repeating setup preserves other profiles and shorter operator budgets. A policy mismatch requires a separate binding or a deliberate operator migration. Set S2S_CONTEXT_BINDING to an absolute binding path to select a separate service deployment. Restart the speech service after activation.

doctor checks the selected private binding. doctor --live also measures a real embedding request, checks the returned dimensions and opens the native reader. It reports the first recall, a repeat under the configured budget, and guest/unmapped identity checks. Without a canary it reports recall content as unverified. The report contains check codes, outcomes and elapsed times. Exit codes are 0 for success, 1 for a failed check and 2 for invalid setup. A live doctor process exercises its own environment and reader. A spoken request verifies adoption by a running server.

For an embedding service that evicts idle models, add --keep-warm to the setup command and restart the speech server. The docked AgentMemory provider sends a one-character synthetic input to the configured embeddings endpoint when it opens and every 90 seconds thereafter. It uses the model and credentials already configured for retrieval. These requests contain no session or user data and do not query the store or the model inventory. A failed request is logged by error type and retried on the next interval. Leaving the provider lifespan stops renewals and lets the embedding service apply its normal eviction policy. This option is off by default. On a metered endpoint it adds about 40 embedding requests per hour per serving provider instance. An endpoint that evicts sooner than 90 seconds or is under memory pressure can still miss the turn budget.

The independent --warmup option runs one read-only canary lookup before serving. It requires a seeded canary. --keep-warm works on its own. Neither option changes the host's turn budget. MDS skips provider startup when the effective recall budget is zero.

Each setup invocation supplies the complete adapter configuration. Omitting both the canary and warm-up settings clears a previous startup probe. Strict live diagnostics report a failure if serving recall is disabled. Startup warm-up does not keep an idle model resident indefinitely. If the model service evicts it, the next turn can fall back while the model reloads.

Live diagnostics time two independent embedding calls and check the returned model identifier when available. The report marks the model used to produce existing stored vectors as unverified because the native store does not record it. Supply the indexing model in the service configuration. The setup receipt records the interpreter and whether an explicitly requested local model was already installed or downloaded.

Metadata

Release files for agentmemory-mds 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentmemory-mds 0.1.0
File Size Uploaded Provenance Actions
agentmemory_mds-0.1.0.tar.gz 18.9 kB Without provenance Details for agentmemory_mds-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentmemory-mds 0.1.0
File Interpreter ABI Platform Actions
agentmemory_mds-0.1.0-py3-none-any.whl Python 3 none any Details for agentmemory_mds-0.1.0-py3-none-any.whl

Total release size: 32.2 kB

Release files / agentmemory_mds-0.1.0.tar.gz

Download URL agentmemory_mds-0.1.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
189d0326240322dcd579e1e16b5493b72de5018998cd8c010510619d33c64423
BLAKE2b-256 checksum
How to use checksums
9608189c639853b0bc454843a6e7112f533cc0cfd3b9c86d75674fb93a4d4927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / agentmemory_mds-0.1.0-py3-none-any.whl

Download URL agentmemory_mds-0.1.0-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88b404ba2f232844d24d819dbc432b48e8338951e192187f7b11a00eb431a08d
BLAKE2b-256 checksum
How to use checksums
5a3202a4b2281f2686408fe24428b725e5023e534079ad05c731d8671a19b400
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for agentmemory-mds 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page