Skip to main content

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
)

Apache 2.0 · Docs · GitHub

Metadata

Release files for mengram-crewai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mengram-crewai 0.1.0
File Size Uploaded
mengram_crewai-0.1.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mengram-crewai 0.1.0
File Interpreter ABI Platform
mengram_crewai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / mengram_crewai-0.1.0.tar.gz

Download URL mengram_crewai-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a8f7021eefd3526e9280d2f60ecb29c2c3c9e4581a5f6fff2cd72e71b82d7708
BLAKE2b-256 checksum
How to use checksums
703ed217f792e2cadd21b4c763f3072d3869d3592805eba4fb1efec81487e965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / mengram_crewai-0.1.0-py3-none-any.whl

Download URL mengram_crewai-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afdd4b3eee885d44c5986d72f7c51bf0e5ba3764430e7653ae1771d08767965f
BLAKE2b-256 checksum
How to use checksums
12ebb794eda88c0fa09853474eab69894578be1f2bfae2b3659017e030d74d4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page