Skip to main content

Agent memory and knowledge management with 4-layer cognitive architecture

Project description

agent-memory

Agent memory and knowledge management with 4-layer cognitive architecture

CI PyPI version Python versions License

Part of the AumOS open-source agent infrastructure portfolio.


Features

  • Four-layer cognitive memory model — WORKING (active context), EPISODIC (events), SEMANTIC (facts and concepts), and PROCEDURAL (how-to knowledge) — each with its own storage, retrieval, and eviction semantics
  • Importance scoring with five qualitative tiers (CRITICAL through TRIVIAL) and a numeric [0, 1] score, plus time-based decay that reduces importance automatically as memories age
  • Contradiction detection and resolution: ContradictionDetector identifies conflicting MemoryEntry pairs and ContradictionResolver applies configurable resolution strategies
  • Provenance tracking records the source and trust level of every memory item, with reliability scores that factor into retrieval ranking
  • Three storage backends — in-memory, SQLite, and Redis — all behind the MemoryStore ABC; UnifiedMemory provides a single facade across all four layers
  • AutoMemorizeMiddleware and ContextBuilder work together to automatically memorize tool outputs and construct retrieval-augmented context windows for LLM calls
  • Freshness validation and forced refresh policies prevent stale semantic memories from being surfaced in time-sensitive retrieval queries

Quick Start

Install from PyPI:

pip install agent-memory

Verify the installation:

agent-memory version

Basic usage:

import agent_memory

# See examples/01_quickstart.py for a working example

Documentation

Enterprise Upgrade

For production deployments requiring SLA-backed support and advanced integrations, contact the maintainers or see the commercial extensions documentation.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.

License

Apache 2.0 — see LICENSE for full terms.


Part of AumOS — open-source agent infrastructure.

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

aumos_agent_memory-0.2.0.tar.gz (172.8 kB view details)

Uploaded Source

Built Distribution

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

aumos_agent_memory-0.2.0-py3-none-any.whl (132.1 kB view details)

Uploaded Python 3

File details

Details for the file aumos_agent_memory-0.2.0.tar.gz.

File metadata

  • Download URL: aumos_agent_memory-0.2.0.tar.gz
  • Upload date:
  • Size: 172.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for aumos_agent_memory-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cc8b2a0c3cb57e99f37dc87a223aff173835800be7860fc6ecc3493e3294f0f2
MD5 4a2cca08fb9b748722d51ad07691c72d
BLAKE2b-256 09a46e241da9c15ebd0777cc0a0ab097997b0b8d7608206b6f13f52878c4106d

See more details on using hashes here.

File details

Details for the file aumos_agent_memory-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aumos_agent_memory-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0c2c4f07b4af04c373dd4dac60a682aa063cab26f621efcd092398961889d8
MD5 fea03e04fb0636f78b317534010d9efc
BLAKE2b-256 0a0d117a3884be8e0f90dcff47f8d1ade488e22241ef4f36896da801f90aea08

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