Multi-Agent Systems with AutoGen
Intermediate · 30 minutes · 100 points
In this hands-on lab, you will build the foundation of a multi-agent system using Microsoft's AutoGen framework (the classic AutoGen 0.2 API). You will install AutoGen, create conversational agents, wire specialized agents into a group chat with a manager, and simulate how an agent calls registered tools. The lab uses a stub model configuration and no API key, so the agents are created and connected but no language model is called and no conversation is run. This lab introduces core AutoGen concepts including AssistantAgent, UserProxyAgent, and group chat orchestration.
What you’ll learn
- Install and verify the AutoGen framework and its dependencies in a Python 3.12 environment
- Create and configure AssistantAgent and UserProxyAgent with custom system prompts and termination conditions
- Set up a multi-agent group chat (planner, coder, reviewer and a GroupChatManager) that is ready for specialized agents to collaborate once a real model is configured
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 3 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 runs each task’s checks in your container 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: A container on your computer, with a real terminal
- Image: python:3.12-slim
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: autogen, multi-agent, llm, python, ai-agents, group-chat, tool-use, orchestration
Create a free account to start this lab.