crewAI

โœ“
๐Ÿ† 0.02% โš™ Python
github.com/joaomdmoura/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.

Pages: 7 Lines: 4,735 Size: 212KB Trust: โ˜…โ˜…โ˜…โ˜…โ˜… Updated: May 2026
Concept 1021 lines 40KB Benchmark 94.2
๐Ÿ“„ Raw

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.


| Feature | Implementation |

|---|---|

| Storage | In-memory dict / Mem0 / Chroma |
| Scoring | Semantic + Recency + Importance |
| Scopes | Hierarchical tree |
| Forgetting | Scoped deletion |
| Weights | `recency_weight=0.5`, `half_life_days=7` |

**Note:** This documentation was extracted from crewAI docs v1.14.4. See the [full memory docs](memory.md) for complete API reference.