Skip to main content

Python client for enn-memory - Long-term memory system for AI agents

Project description

enmem-client

Python client for enn-memory - Long-term memory system for AI agents.

Installation

pip install enmem-client

Quick Start

from enmem_client import Enmem

# Initialize client
client = Enmem(base_url="http://localhost:8888")

# Store a memory
client.retain(
    bank_id="my-bank",
    content="User prefers Python programming"
)

# Search memories
results = client.recall(
    bank_id="my-bank",
    query="What does the user like?"
)
for r in results.results:
    print(r.text)

# Generate contextual answer
answer = client.reflect(
    bank_id="my-bank",
    query="What are the user's interests?"
)
print(answer.text)

Documentation

Full documentation: https://github.com/enn-memory/ennmem-docs

Features

  • Retain: Store memories with automatic fact extraction
  • Recall: Search memories using semantic similarity
  • Reflect: Generate contextual responses using memories and mental models
  • Mental Models: Create living documents that auto-refresh
  • Directives: Set hard rules for reflect operations
  • Bank Management: Create and configure memory banks

License

MIT

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

enmem_client-0.4.21.tar.gz (173.2 kB view details)

Uploaded Source

Built Distribution

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

enmem_client-0.4.21-py3-none-any.whl (202.4 kB view details)

Uploaded Python 3

File details

Details for the file enmem_client-0.4.21.tar.gz.

File metadata

  • Download URL: enmem_client-0.4.21.tar.gz
  • Upload date:
  • Size: 173.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for enmem_client-0.4.21.tar.gz
Algorithm Hash digest
SHA256 c98a8a6081e6de33d405b096f747e3efd609f7f280197a0c997bf24d9c599ab4
MD5 9d93a8123bc681985a78e361659f9403
BLAKE2b-256 fcf51d3287beb6cb450237fb8562761ff230e9c90d6581bd19def77b27bc979b

See more details on using hashes here.

File details

Details for the file enmem_client-0.4.21-py3-none-any.whl.

File metadata

  • Download URL: enmem_client-0.4.21-py3-none-any.whl
  • Upload date:
  • Size: 202.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for enmem_client-0.4.21-py3-none-any.whl
Algorithm Hash digest
SHA256 0b3c6f6c85b5efd6d6d42ee5e215c39ba93716a718768259c7ea20337dfadb36
MD5 489ab91a6cc43342cb05c4596ca40b65
BLAKE2b-256 4f185c5fcf3d3ace403338b87732ff18879d60240786113a749278669a458867

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