Skip to main content

CrewAI long-term memory adapter for the Mnemosyne memory substrate. Implements the LongTermMemory protocol via duck typing, with per-agent and per-task scoping, hybrid BM25+vector recall, idempotent writes.

Project description

mnemosyne-crewai

PyPI version License: MIT

CrewAI long-term memory adapter for the Mnemosyne memory substrate. Implements the LongTermMemory protocol via duck typing, with per-agent and per-task scoping, hybrid BM25+vector recall, and idempotent writes.

Install

pip install mnemosyne-crewai

Quick start

from mnemosyne_crewai import MnemosyneLongTermMemory, MnemosyneMemoryTool
from crewai import Agent, Crew, Task

# Long-term memory for the crew
ltm = MnemosyneLongTermMemory(container_tag="research-crew")

# Save a memory
ltm.save("GPT-5 is now the default flagship model.", agent="researcher")

# Search
results = ltm.search("latest model", limit=5)
for r in results:
    print(r["content"], r["score"])

# Tool
tool = MnemosyneMemoryTool(container_tag="research-crew")
agent = Agent(
    role="Researcher",
    goal="Find the latest AI news",
    backstory="Expert AI researcher.",
    tools=[tool],
)
task = Task(description="What's the latest model?", agent=agent)
crew = Crew(agents=[agent], tasks=[task])
crew.kickoff()

License

MIT © Geass Labs

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

mnemosyne_crewai-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

mnemosyne_crewai-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mnemosyne_crewai-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mnemosyne_crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cf7bfe8eba07e9c459383136f1ff11ac88967edef507302093e71f1174ad57f8
MD5 e7212234eedffb891fade8d974023f2b
BLAKE2b-256 e4c2a95dadcca6a365da780c7a96d46cbb77006d245bf36c2436a2f2a6eb3583

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mnemosyne_crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95bd358475c71f2606db6ae8b653c169dbe47e56dff987b313287532d4068d68
MD5 6593277d5ccd36e6fae34c04b92bbe72
BLAKE2b-256 7f0db633b4631c84022292abfbe04e33f7471c8be0c87e1a5bf9c34b705770e2

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