Skip to main content

MenteDB integration for CrewAI and AutoGen

Project description

mentedb-crewai

MenteDB integration for CrewAI and AutoGen. Gives your multi agent teams persistent, cognitive memory that survives across sessions and tracks reasoning quality over time.

Installation

pip install mentedb-crewai

Components

MenteDBCrewMemory

A memory backend for CrewAI agents that stores and retrieves memories through MenteDB. Each agent can have its own memory space, or agents on the same team can share a common space for collaborative recall.

from crewai import Agent, Crew, Task
from mentedb_crewai import MenteDBCrewMemory

memory = MenteDBCrewMemory(
    data_dir="./crew-memory",
    space="research-team",
)

researcher = Agent(
    role="Senior Researcher",
    goal="Find comprehensive information on the topic",
    memory=memory,
)

writer = Agent(
    role="Technical Writer",
    goal="Write clear documentation from research",
    memory=MenteDBCrewMemory(
        data_dir="./crew-memory",
        space="research-team",
        agent_name="writer",
    ),
)

task = Task(
    description="Research and document the latest trends in vector databases",
    agent=researcher,
)

crew = Crew(agents=[researcher, writer], tasks=[task])
crew.kickoff()

Memory is stored persistently, so the next time the crew runs it can recall findings from previous sessions.

MenteDBTool

A tool that lets agents query MenteDB directly using MQL (Mente Query Language). Attach it to any agent so the agent can search and retrieve from the team's knowledge base during task execution.

from crewai import Agent
from mentedb_crewai import MenteDBTool

memory_tool = MenteDBTool(data_dir="./crew-memory")

agent = Agent(
    role="Analyst",
    goal="Analyze data using historical context",
    tools=[memory_tool],
)

The agent can then invoke the tool during its reasoning to recall past decisions, find related context, or check what the team already knows about a topic.

Usage with AutoGen

MenteDB works with AutoGen agents through the same memory and tool interfaces. Use MenteDBCrewMemory to give AutoGen agents persistent memory, or MenteDBTool to let them query the knowledge base.

from mentedb_crewai import MenteDBCrewMemory, MenteDBTool

memory = MenteDBCrewMemory(data_dir="./autogen-memory", space="dev-team")
tool = MenteDBTool(data_dir="./autogen-memory")

# Store context from agent work
memory.store("The team decided to use PostgreSQL for the main database.")

# Search for relevant memories
results = memory.search("database decision", k=5)

# Get assembled context within a token budget
context = memory.get_context("Plan the database migration", token_budget=2000)

Configuration

Parameter Default Description
data_dir ./mentedb-data Path to the MenteDB data directory
space default Memory space name for agent isolation or sharing
agent_name None Optional agent name for per agent memory scoping

License

Apache 2.0

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

mentedb_crewai-0.8.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

mentedb_crewai-0.8.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mentedb_crewai-0.8.1.tar.gz.

File metadata

  • Download URL: mentedb_crewai-0.8.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mentedb_crewai-0.8.1.tar.gz
Algorithm Hash digest
SHA256 2c716bb9a7b0e49fdefa5d6bd1abb5f47ceb54b07b86517c6cddb8e58a6cd48c
MD5 1dc04a3ec625a914925dc5a8afb9455c
BLAKE2b-256 f2f41f984468eeb4f9c7b5adb26c8f699c3f4b7de293c85a84626a70adad4d71

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentedb_crewai-0.8.1.tar.gz:

Publisher: publish-sdks.yml on nambok/mentedb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mentedb_crewai-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: mentedb_crewai-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mentedb_crewai-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a6c6b85ee5b45f86ed44576b147caca1b35e1d88831ee288360f02836b26006
MD5 9d761504d11aac88a51df8d0b107faeb
BLAKE2b-256 7c4ee8db2195dd53dbd0841c27524a7b75eb7201c64b7f5667b9a1f0a74d7726

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentedb_crewai-0.8.1-py3-none-any.whl:

Publisher: publish-sdks.yml on nambok/mentedb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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