Mengram memory tools for CrewAI agents — semantic, episodic, and procedural memory (workflows that learn from failures).
Project description
mengram-crewai
Mengram memory tools for CrewAI agents — semantic (facts), episodic (events), and procedural memory (workflows that learn from failures).
The unique part is get_procedures: step-by-step playbooks with a success/failure track record and preconditions — the assumptions that were violated when the workflow previously failed — so your agents stop repeating mistakes they already made.
Install
pip install mengram-crewai
Free API key at mengram.io (40 memory adds + 200 searches/mo, no card).
Usage
from crewai import Agent
from mengram_crewai import mengram_tools
agent = Agent(
role="DevOps engineer",
goal="Ship the release safely",
tools=mengram_tools(api_key="om-...", user_id="user-123"),
)
The agent gets three tools:
| Tool | What it does |
|---|---|
search_memory |
Semantic search over facts, preferences, events, decisions |
save_memory |
Save a durable fact to long-term memory |
get_procedures |
Learned workflows: steps, track record, preconditions to verify |
Multi-user
Pass your end-user's id as user_id — isolated facts, events, workflows, and profile per user under one API key. See mengram.io/for-agents.
Options
mengram_tools(
api_key="om-...", # or rely on MENGRAM_API_KEY env var
user_id="user-123", # multi-user isolation
limit=5, # max results per tool call
base_url="https://...", # self-hosted instances
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mengram_crewai-0.1.0.tar.gz.
File metadata
- Download URL: mengram_crewai-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8f7021eefd3526e9280d2f60ecb29c2c3c9e4581a5f6fff2cd72e71b82d7708
|
|
| MD5 |
bc43d3d50ea5981c00183990335e1a43
|
|
| BLAKE2b-256 |
703ed217f792e2cadd21b4c763f3072d3869d3592805eba4fb1efec81487e965
|
File details
Details for the file mengram_crewai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mengram_crewai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afdd4b3eee885d44c5986d72f7c51bf0e5ba3764430e7653ae1771d08767965f
|
|
| MD5 |
dd2c276f18f0530fb8709965e3e7a7ae
|
|
| BLAKE2b-256 |
12ebb794eda88c0fa09853474eab69894578be1f2bfae2b3659017e030d74d4a
|