Full-Code · Orchestration Frameworksactive

CrewAI

Type: full-code  ·  Vendor: CrewAI Inc.  ·  Language: Python  ·  License: MIT  ·  Status: active  ·  Status in practice: mature  ·  First released: 2023-10-27

Links: homepage docs repo

Orchestrate teams of role-playing autonomous agents that collaborate on multi-step tasks under a declared Process (sequential or hierarchical), optionally driven by event-driven Flows.

Description. CrewAI is the MIT-licensed Python framework from CrewAI Inc. that models a multi-agent system as a Crew: a collaborative group of role-defined Agent objects assigned ordered Task objects and executed under a declared Process (sequential by default, or hierarchical with a manager agent). On top of crews, CrewAI exposes Flows, an event-driven orchestration layer built around @start, @listen, and @router decorators that manages typed state and routes execution based on emitted events. The framework ships a unified memory store (LanceDB by default at ./.crewai/memory), automatic delegation/ask-question collaboration tools, MCP integration via the mcps field and MCPServerAdapter, and structured outputs via Pydantic.

Agent loop shape. Crew/Process loop: a Crew binds Agents to ordered Tasks and runs them under Process.sequential (linear chaining, each task feeds the next) or Process.hierarchical (a manager_llm delegates to crew members and validates outcomes). Flows wrap Crews in an event-driven graph where @start() methods are entry points, @listen(other_method) fires when its upstream emits, and @router() emits labels that other listeners gate on. Per-agent budgets (max_iter default 25, max_rpm, max_execution_time) bound the inner ReAct/tool loop.

Primary use cases

  • teams of role-playing agents collaborating on a project
  • event-driven multi-step workflows that mix LLM calls and code
  • hierarchical workflows with a manager agent delegating to specialists

Key concepts

  • Crew (docs)Collaborative group of agents working together to achieve a set of tasks.
  • Agent (docs)Autonomous unit defined by role / goal / backstory that performs tasks, makes decisions, and uses tools.
  • Task (docs)A specific assignment completed by an Agent.
  • Process (docs)How Tasks are orchestrated inside a Crew. Process.sequential = linear order; Process.hierarchical = manager_llm delegates and validates.
  • Flow event-driven-agent (docs)Event-driven workflow layer built on @start / @listen / @router decorators with managed typed state.
  • Unified Memory cross-session-memory (docs)Single Memory class replacing separate short-term, long-term, entity, and external memory types; default LanceDB store at ./.crewai/memory.

Patterns this full-code implements

Neighbourhood

Click any neighbour to follow the lineage. Scroll to zoom, drag to pan.

Instantiates

Alternatives & relatives

Listed as alternative by (11)

References

Provenance

  • Last analyzed:
  • Last updated:
  • Verification status: verified