Metadata-Version: 2.4
Name: mnemosyne-crewai
Version: 0.1.0
Summary: 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.
Author-email: Mashle Burneded <mashle@geasslabs.xyz>
Maintainer-email: Geass Labs <team@geasslabs.xyz>
License: MIT License
        
        Copyright (c) 2026 Geass Labs
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://mnemosyne.geasslabs.xyz
Project-URL: Documentation, https://docs.geasslabs.xyz/mnemosyne-crewai
Project-URL: Repository, https://github.com/synet-systems/mnemosyne/tree/main/packages/mnemosyne-crewai
Project-URL: Issues, https://github.com/synet-systems/mnemosyne/issues
Project-URL: Changelog, https://github.com/synet-systems/mnemosyne/blob/main/packages/mnemosyne-crewai/CHANGELOG.md
Keywords: mnemosyne,ai,llm,memory,agent,crewai,framework-adapter
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE-MIT
License-File: NOTICE
Requires-Dist: mnemosyne-sdk>=0.1.0
Requires-Dist: httpx>=0.27.0
Provides-Extra: crewai
Requires-Dist: crewai>=0.30; extra == "crewai"
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Requires-Dist: respx>=0.21.0; extra == "dev"
Requires-Dist: ruff>=0.5.0; extra == "dev"
Requires-Dist: mypy>=1.10.0; extra == "dev"
Requires-Dist: crewai>=0.1.0; extra == "dev"
Dynamic: license-file

# mnemosyne-crewai

[![PyPI version](https://img.shields.io/pypi/v/mnemosyne-crewai.svg)](https://pypi.org/project/mnemosyne-crewai/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)

> 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

```bash
pip install mnemosyne-crewai
```

## Quick start

```python
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](https://geasslabs.xyz)
