What You’ll Learn
By building this team, you’ll understand:- How to create specialized agents with distinct roles and capabilities
- How teams coordinate multiple agents using the coordinate mode
- How to combine web search tools with writing expertise for content creation
- How to structure team instructions for collaborative workflows
Use Cases
Build content creation platforms, automated journalism systems, research report generators, or marketing content pipelines.How It Works
The team uses coordinate mode to manage collaboration between specialized agents:- Research: Researcher agent searches the web using DuckDuckGo for relevant information
- Coordinate: Team leader coordinates task distribution between members
- Write: Writer agent crafts clear, engaging content based on research findings
- Integrate: Team combines research and writing into cohesive articles
Code
content_team.py
What to Expect
The team will create an article by first researching the topic through web search, then writing content based on the findings. The researcher finds relevant information and sources, while the writer transforms this into engaging prose. The output shows responses from both team members so you can see how they collaborate. The final article combines accurate research with clear, professional writing.Usage
1
Create a virtual environment
Open the
Terminal and create a python virtual environment.2
Set your API key
3
Install libraries
4
Run Team
Next Steps
- Modify the task in
print_response()to create different types of content - Add more specialized agents like editors or fact-checkers to the team
- Adjust
show_members_responsesto control visibility of individual agent outputs - Explore Teams for advanced collaboration patterns