Skip to content

Add materials for "Coordinating Teams of AI Agents with CrewAI in Python"#775

Open
FarahAbdo wants to merge 3 commits into
realpython:masterfrom
FarahAbdo:crewai-tutorial
Open

Add materials for "Coordinating Teams of AI Agents with CrewAI in Python"#775
FarahAbdo wants to merge 3 commits into
realpython:masterfrom
FarahAbdo:crewai-tutorial

Conversation

@FarahAbdo
Copy link
Copy Markdown

Summary

This PR adds the sample code for the Real Python tutorial "Coordinating Teams of AI Agents with CrewAI in Python".

What's included

A new top-level folder coordinating-teams-of-ai-agents-with-crewai-in-python/ containing:

File Tutorial Section
01_single_agent.py Start Using CrewAI to Create Agent Teams
02_research_and_writer_crew.py Build Your First Multi-Agent Team
03_explicit_context.py Control Task Dependencies Explicitly
04_agent_with_tools.py Expand Agent Capabilities With Tools
requirements.txt Dependencies (crewai[tools,google-genai])
README.md Setup and usage instructions

How to run

  1. Create a virtual environment with Python 3.10–3.13 (3.12 recommended on Windows).
  2. pip install -r requirements.txt
  3. Set GEMINI_API_KEY from Google AI Studio.
  4. Run any script, e.g. python 01_single_agent.py.

Notes

  • All four scripts were tested end-to-end with a Gemini API key on Python 3.12.
  • Code matches the article verbatim so readers can follow along directly.
  • No .env, virtual environment, or cache files are committed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant