crewAI
โFramework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks with 50,908 GitHub stars.
Memory
CrewAI's memory system enables agents to retain information across tasks and sessions. The unified `Memory` class replaces separate short-term, long-term, entity, and external memory stores.
Core API
from crewai import Memory
memory = Memory()
memory.remember("PostgreSQL chosen for user database.")
matches = memory.recall("What database did we choose?")
memory.forget(scope="/project/old")
How It Works
**LLM-based metadata extraction** โ when saving a memory, the system infers scope, categories, and importance automatically.
**Composite scoring** โ retrieval uses semantic similarity + recency + importance, with tuneable weights.
**Self-organizing scope trees** โ hierarchical memory namespaces group related concepts.
|---|---|
**Note:** This documentation was extracted from crewAI docs v1.14.4. See the [full memory docs](memory.md) for complete API reference.