liveBook · Manning

CrewAI

As explained in AI Agents in Action

CrewAI is a framework for building multi-agent applications by structuring agents, roles, tasks, memory, and tools.

CrewAI is a framework for building multi-agent applications around specialized roles, autonomous agents, tasks, memory, and tools. It favors structured, enterprise-oriented coordination over open-ended agent interaction. section 4.0 section 4.4

Build a crew by combining these parts:

  • Agents define a role, goal, verbosity, memory, backstory, delegation permissions, and optional tools. section 4.4.1
  • Tasks describe the work, expected output, assigned agent, and execution behavior. section 4.4.1
  • A Crew connects agents and tasks, then configures process type, memory, caching, request limits, and sharing. section 4.4.1
  • Sequential processing passes work through the listed agents and tasks; hierarchical processing coordinates them through a crew manager. section 4.4 section 4.5

From jokes to software teams

A joke crew assigns research to a senior joke researcher and writing to a joke writer, then starts the workflow with a topic such as “AI engineer jokes.” A coding crew instead combines a senior software engineer, QA engineer, and chief QA engineer to create, inspect, and evaluate a Python game. Switching that crew from sequential to hierarchical processing adds a manager model for coordination. section 4.4.1 section 4.5

Figure 4.10 The composition of a CrewAI system
figure

Use the system composition diagram to trace how agents, tasks, tools, memory, and processing patterns connect inside a CrewAI crew. section 4.4

How AI Agents in Action covers it

How deep it goes
Explains agent, task, and crew configuration through runnable examples, then demonstrates sequential and hierarchical execution.
Examples
Demonstrates joke writing, Python game development, quality assurance, crew managers, and AgentOps monitoring exercises.
What you can do after
Build it from scratch by defining agents and tasks, assembling a crew, running workflows, and comparing sequential with hierarchical coordination.
How it connects
Connects agents with tasks, memory, tools, sequential processing, hierarchical processing, and observability.

Also explained in

Compare how 2 books explain CrewAI →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action. The section links point to the parts of the book it draws on.