agentmemory-native
AgentMemory for Python, without installing .NET: the AgentMemory library compiled with Native AOT into one shared library, with a small Python binding (ctypes, standard library only). It recalls a person's memories from Neo4j and, in the writing profiles, turns what they say into facts and preferences.
It is the memory behind a voice assistant: a speech server recalls before each reply and saves after the person's turn, within a time limit it sets (about 100 ms a recall with a local embedding model).
Requirements
- CPython 3.10 or newer on one of: Linux x86-64 or ARM64 with glibc 2.34 or newer (Ubuntu 22.04+, Debian 12+), macOS on Apple silicon, or Windows x64. Each wheel carries the library built and tested on that platform.
- Neo4j 5.26 with the AgentMemory schema.
- An OpenAI-compatible embeddings endpoint (for example Ollama with
bge-m3), and for writing, an OpenAI-compatible chat model.
Install
pip install agentmemory-native
Recall
import agentmemory_native as am
config = {
"schemaVersion": 1,
"profile": "read_only",
"owner": {"mode": "fixed", "id": "user-42"},
"store": {"uri": "bolt://localhost:7687", "username": "neo4j", "password": "your-password"},
"embedding": {"dimensions": 1024, "model": "bge-m3",
"endpoint": {"url": "http://localhost:11434/v1/embeddings"}},
}
with am.MemoryClient(config) as memory:
result = memory.get_context(session_id="conversation-1", query="Where do I work?",
max_facts=10, max_preferences=5, min_score=0.7,
max_entities=10, max_relationships=10, time_windows=True)
for fact in result.facts:
print(fact.subject, fact.predicate, fact.object)
Recall reads one owner's memory only. AsyncMemoryClient offers the same calls for asyncio.
Remember
With the explicit_write or learning profile, a writer (any OpenAI-compatible chat model) and a state
directory for the write journal, memory.remember(source_id=..., session_id=..., text=..., occurred_at=...) saves
what the person said and returns a receipt: what was kept, and whether recall can find it yet. Forgetting and erasing
an owner are calls of their own.
The contract
Requests and results are JSON documents, versioned (ABI 1, schema version 1). The full contract, the error codes and the configuration are in native/CONTRACT.md.
Licence
MIT. The wheel carries the licences of the packages compiled into the library (licenses/THIRD-PARTY-NOTICES.txt)
and a manifest of the library's build (agentmemory_native/_native/MANIFEST.json); the binding refuses a library whose
bytes differ from it.
Metadata
Release files for agentmemory-native 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| agentmemory_native-0.2.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for agentmemory_native-0.2.0-py3-none-win_amd64.whl |
| agentmemory_native-0.2.0-py3-none-manylinux_2_34_x86_64.whl | Python 3 | none | Linux glibc 2.34+ x86-64 | Details for agentmemory_native-0.2.0-py3-none-manylinux_2_34_x86_64.whl |
| agentmemory_native-0.2.0-py3-none-manylinux_2_34_aarch64.whl | Python 3 | none | Linux glibc 2.34+ ARM64 | Details for agentmemory_native-0.2.0-py3-none-manylinux_2_34_aarch64.whl |
| agentmemory_native-0.2.0-py3-none-macosx_12_0_arm64.whl | Python 3 | none | macOS 12.0+ ARM64 | Details for agentmemory_native-0.2.0-py3-none-macosx_12_0_arm64.whl |
Total release size: 37.6 MB
Release files / agentmemory_native-0.2.0-py3-none-win_amd64.whl
| Download URL | agentmemory_native-0.2.0-py3-none-win_amd64.whl |
|---|---|
| Size | 9.3 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
43de541346dc10a16f56611528e24cd38a5f4ea8c9d5d3d704b4ad7d4ffd8874
|
|
BLAKE2b-256 checksum How to use checksums |
e911ad83f1e2c0e5029da807823eba20bb33a5c70710e3467eada5d62dc38871
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / agentmemory_native-0.2.0-py3-none-manylinux_2_34_x86_64.whl
| Download URL | agentmemory_native-0.2.0-py3-none-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 10.0 MB |
| Tags | Linux glibc 2.34+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
781490161e75344845cc178426e76d1c62130134717c39a5fd18af4fae12f216
|
|
BLAKE2b-256 checksum How to use checksums |
ed071f0257dd919c62896da1f5ad6f34de7bd02a8230513c51cc38a4191a45fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / agentmemory_native-0.2.0-py3-none-manylinux_2_34_aarch64.whl
| Download URL | agentmemory_native-0.2.0-py3-none-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 9.4 MB |
| Tags | Linux glibc 2.34+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
345b42aea97cfe06ea6d34a75f57ef47a792b92d5b0ee4ab61d9fc51f7210871
|
|
BLAKE2b-256 checksum How to use checksums |
5f4f783248874ee0b6a54ba4db7ddbb62c1275bd39f6c883be6f6ba9f7bd2fc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / agentmemory_native-0.2.0-py3-none-macosx_12_0_arm64.whl
| Download URL | agentmemory_native-0.2.0-py3-none-macosx_12_0_arm64.whl |
|---|---|
| Size | 9.0 MB |
| Tags | Python 3 macOS 12.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d5eb56163db80038c248970bf91a53d8efbc9cc7acb465e76bd054886813a12d
|
|
BLAKE2b-256 checksum How to use checksums |
4f56a0732f3518c078f0caa2cc5b27409dd226f45d72f665116f82488ef438d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for agentmemory-native 0.2.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.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for agentmemory_native-0.2.0-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA 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.