Lesson 09.05 · Phase 09 · Frameworks & SDKs
CrewAI roles & crews
CrewAI turns three strings into a system prompt: "You are {role}. {backstory} Your personal goal is: {goal}". A task adds what to do, what a good answer looks like, and the previous task's output. A crew runs tasks in order or lets a manager assign them. Read the prompts it actually sends and you know exactly what you're paying for.
Learning objectives
- Rebuild CrewAI's agent, task and crew abstractions and the exact prompts they produce.
- Explain how a sequential crew passes context forward, and what a hierarchical manager adds.
- Capture and read the prompts a framework sends, using a recording model.
- Know CrewAI's defaults: maxiter 25, delegation off, memory off.
A role-based crew demos beautifully: a "Senior Researcher" with a rich backstory hands findings to an "Award-winning Writer", and out comes a report. Then it goes wrong in production. The writer ignores half the research, or the researcher loops on a tool, and nobody can say why, because the framework assembled the prompts and nobody has read them.
Loading the full lesson…