Pass Work Between CrewAI Tasks with Context
Beginner · 30 minutes · 5 tasks, checked automatically · 100 points
Learn how CrewAI tasks share information through the context mechanism. You will build a two-agent crew where the first agent researches a topic and the second agent explicitly receives that output as context to write a summary. By the end you will understand how sequential task chaining works and how to verify that downstream tasks actually consumed upstream results.
What you’ll learn
- Install CrewAI and confirm it can reach the local qwen2.5:3b model
- Define two agents — a researcher and a summariser — each with a distinct role, goal, and backstory
- Wire the summariser's task to receive the researcher's task output via the context parameter, then verify the second agent's output references the first agent's work
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: qwen2.5:3b
- Open source: github.com/crewAIInc/crewAI
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A model sandbox started in the Agent Playground
Topics: crewai, agents, task-context, sequential-process, multi-agent, qwen2.5, local-llm
Create a free account to start this lab.
Keep going
- Install OpenClaw and Bring Up the Gateway
- Run OpenClaw Fully Offline with a Local Ollama Model
- Walk the OpenClaw Workspace: Sessions, History, and Resuming Conversations
- Configure Hermes: Persistent Model, Backend, and Tool Defaults
- Hermes Agent: Install, Diagnose, and First-Run Setup Against a Local Model
- Tour the Hermes Toolsets: Discover, Enable, and Trace Tool Calls