This directory contains tutorials on building multi-agent systems using various frameworks including CrewAI, BeeAI, ACP, AutoGen, ChatDev, and MetaGPT with IBM Watsonx.
Each tutorial in this directory includes its own setup and installation instructions. Please refer to the individual tutorial files for specific requirements.
Common requirements:
- Python 3.10 - 3.13
- IBM watsonx.ai account
- Minimum: Python 3.10
- Recommended: Python 3.11
- Maximum: Python 3.13
Different BeeAI tutorials require incompatible versions. Install the specific version needed for your tutorial:
For a2a tutorials (Agent-to-Agent communication):
pip install "beeai-framework[a2a]>=0.1.36,<0.2.0"
pip install "pydantic>=2.10,<3.0.0"For beeai_agent_server:
pip install "beeai-framework==0.1.29"
pip install "pydantic-ai==0.2.14"For bee-ai-multi-agent-contract-management:
pip install beeai-framework
pip install "beeai-framework[duckduckgo]"
pip install langchain-core langchain-community- Install dependencies (see Installation above)
- For BeeAI tutorials, install the specific version (see above)
- Navigate to this directory:
cd tutorials/03-multi-agent-systems - Follow the specific tutorial instructions
Build a retail advisory system with multiple specialized agents.
- Topics: Role-based agents, task delegation, retail analysis
- Prerequisites: Multi-agent dependencies
- Estimated time: 40-50 minutes
Analyze customer service calls using collaborative agents.
- Topics: Call analysis, sentiment analysis, agent collaboration
- Prerequisites: Multi-agent dependencies
- Estimated time: 50-60 minutes
- Type: Python Package (uses UV/Hatch)
Retail advisory system with CrewAI agents.
- Topics: Retail insights, market analysis, agent workflows
- Prerequisites: Multi-agent dependencies
- Estimated time: 40-50 minutes
- Type: Python Package (uses UV/Hatch)
Agent-to-Agent communication using BeeAI framework.
- Topics: Agent communication, A2A protocol, distributed agents
- Prerequisites: Multi-agent dependencies + beeai-framework[a2a]>=0.1.36
- Estimated time: 50-60 minutes
- Type: Client-Server Architecture
Contract analysis and management with BeeAI agents.
- Topics: Contract analysis, document processing, agent coordination
- Prerequisites: Multi-agent dependencies + beeai-framework
- Estimated time: 40-50 minutes
Framework-agnostic agent communication using ACP (Agent Communication Protocol).
- Topics: Cross-framework communication, BeeAI + CrewAI integration
- Prerequisites: Multi-agent dependencies + ACP SDK
- Estimated time: 60-70 minutes
- Type: Multi-component system (client + servers)
Multi-agent RAG system using Microsoft's AutoGen framework.
- Topics: Conversational agents, collaborative problem-solving, RAG
- Prerequisites: Multi-agent dependencies + requirements-rag.txt
- Estimated time: 50-60 minutes
- Location: Also in
tutorials/01-rag-and-retrieval/
Software development simulation with role-based agent team.
- Topics: Software development workflow, role-based agents, code generation
- Prerequisites: See tutorial-specific requirements.txt (exact version pins)
- Estimated time: 60-90 minutes
- Type: Complex multi-agent system
- Note: Uses exact version pins - see
chatdev_watsonx_tutorial_/requirements.txt
Product requirement document generation using MetaGPT.
- Topics: PRD generation, software planning, agent collaboration
- Prerequisites: See tutorial-specific instructions
- Estimated time: 40-50 minutes
- Best for: Role-based workflows, task delegation
- Strengths: Easy to use, built-in tools, good documentation
- Use cases: Business processes, content creation, research
- Best for: IBM ecosystem integration, complex agent interactions
- Strengths: Agent-to-agent communication, enterprise features
- Use cases: Enterprise applications, distributed systems
- Best for: Cross-framework agent coordination
- Strengths: Framework-agnostic, standardized communication
- Use cases: Hybrid systems, framework integration
- Best for: Conversational agents, code generation
- Strengths: Microsoft ecosystem, strong code capabilities
- Use cases: Software development, collaborative problem-solving
- Best for: Software development simulation
- Strengths: Complete SDLC simulation, role-based team
- Use cases: Automated software development, process simulation
- Best for: Software planning and documentation
- Strengths: PRD generation, structured planning
- Use cases: Product management, software planning
Systems where multiple AI agents:
- Collaborate: Work together toward common goals
- Communicate: Exchange information and coordinate actions
- Specialize: Each agent has specific roles and capabilities
- Coordinate: Manage dependencies and workflows
Common agent roles in multi-agent systems:
- Manager: Coordinates other agents, assigns tasks
- Researcher: Gathers and analyzes information
- Writer: Creates content and documentation
- Reviewer: Evaluates and provides feedback
- Executor: Performs specific actions or tasks
- Hierarchical: Manager delegates to subordinate agents
- Peer-to-Peer: Agents communicate directly with each other
- Broadcast: One agent sends messages to all agents
- Request-Response: Agents request services from each other
- Content Creation: Multiple agents for research, writing, editing
- Software Development: Agents for planning, coding, testing, reviewing
- Business Analysis: Agents for data gathering, analysis, reporting
- Customer Service: Agents for routing, resolution, escalation
- Research: Agents for literature review, analysis, synthesis
Solution: Install the specific version required by your tutorial:
# For a2a tutorials
pip install "beeai-framework[a2a]>=0.1.36,<0.2.0"
# For beeai_agent_server
pip install "beeai-framework==0.1.29"Solution: Ensure CrewAI is installed with tools:
pip install "crewai[tools]>=0.95.0,<1.0.0"Solution: Install ACP SDK:
pip install "acp-sdk>=1.0.1"Solution: Install web-surfer extension and Playwright:
pip install autogen-ext[web-surfer]
playwright installSolution: Use the tutorial-specific requirements.txt:
cd chatdev_watsonx_tutorial_
pip install -r requirements.txtSolution:
- Check agent configuration and roles
- Verify communication protocol setup
- Review agent task definitions
- Check for network/connection issues (for distributed agents)
Solution:
- Reduce number of agents
- Optimize agent prompts
- Use parallel execution where possible
- Cache repeated operations
Solution: Create a fresh virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements-multiagent.txt- Agent Design: Keep agents focused on specific roles
- Communication: Define clear communication protocols
- Error Handling: Implement robust error handling for agent failures
- Testing: Test individual agents before integration
- Monitoring: Log agent interactions for debugging
- Scalability: Design for horizontal scaling when needed
- Human Oversight: Include human-in-the-loop for critical decisions
- Requires BeeAI framework >=0.1.36
- Uses client-server architecture
- See
a2a_tutorial/a2a-tutorial.mdfor detailed instructions
- Demonstrates cross-framework communication
- Includes BeeAI and CrewAI agent servers
- See
acp_tutorial/acp_tutorial.mdfor setup
- Complex setup with exact version requirements
- See
chatdev_watsonx_tutorial_/requirements.txt - Includes visualization tools
- Use modern Python packaging (UV/Hatch)
- See individual pyproject.toml files
- Can be run as standalone packages
- Main Repository README
- IBM Watsonx Documentation
- CrewAI Documentation
- BeeAI Documentation
- AutoGen Documentation
- LangChain Multi-Agent Documentation
Found an issue or want to add a new multi-agent tutorial? See our Contributing Guide for details on how to contribute.
See the LICENSE file in the repository root for license information.