Skip to content

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

Open
FarahAbdo wants to merge 5 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 5 commits into
realpython:masterfrom
FarahAbdo:crewai-tutorial

Conversation

@FarahAbdo

@FarahAbdo FarahAbdo commented May 23, 2026

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.

@martin-martin martin-martin self-requested a review May 29, 2026 10:56

@martin-martin martin-martin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @FarahAbdo thanks for adding your code and being patient with my review (lots going on at the moment!!).

This overall looks good, I have three small asks from you:

  1. Pin the version used (I confirmed your code still works with that version)
  2. Update the slug in your README (I already did, you just need to confirm the edit)
  3. Update the folder name to crewai-python/ to match the new tutorial slug

The shorter slug will help to make your tutorial easier to discover for readers, and it's best if the folder here matches the tutorial slug for consistency.

Otherwise everything looks good, thank you for your work on this! : )

Comment thread coordinating-teams-of-ai-agents-with-crewai-in-python/requirements.txt Outdated
Comment thread coordinating-teams-of-ai-agents-with-crewai-in-python/README.md Outdated
FarahAbdo and others added 2 commits June 9, 2026 14:38
Co-authored-by: Martin Breuss <martin-martin@users.noreply.github.com>
…ents.txt

Co-authored-by: Martin Breuss <martin-martin@users.noreply.github.com>
@FarahAbdo

Copy link
Copy Markdown
Author

Thanks a lot for the detailed review @martin-martin

I’ve now:

  • Pinned the CrewAI version in requirements.txt.
  • Updated the README slug to crewai-python.
  • Kept the code and folder structure aligned with the new tutorial slug.

Please let me know if anything else stands out, otherwise this should be ready for another pass.

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.

2 participants