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.1.0.tar.gz (109.7 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.1.0-py3-none-any.whl (86.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aumos_agent_memory-0.1.0.tar.gz
  • Upload date:
  • Size: 109.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 633bd150806f0fc24c4a02c058153e70d9570d69a7c53bfbff8d9c561d45c9fe
MD5 557cae0927290b2fb7d7c198786bbff7
BLAKE2b-256 146b6b708777d17a90293fb182b41be438c0eaf9ed7d1e286506cc166dd234c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aumos_agent_memory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1612879d6a7c340a992a1bf8910e926a647048e6533c4e33c9cdc8ad2a9de909
MD5 4db20e8369c9a739cd247c7916957af6
BLAKE2b-256 8ec377a83ef3325dedc369ea85700190d1f27f4d835b6127fde51c4850c9eca7

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