A hands-on tutorial series for building multi-agent systems using Microsoft's AutoGen framework.
This repository contains a comprehensive tutorial series on building and orchestrating multi-agent systems using AutoGen. Through six progressive lessons, you'll learn how to create, configure, and coordinate multiple AI agents to perform complex tasks, from simple conversations to advanced financial analysis and report generation.
AutoGen is a framework that enables the development of LLM-powered applications using multiple agents that can converse with each other, use tools, and work together to accomplish tasks. This tutorial series provides practical examples and hands-on exercises to help you master the framework.
- Python 3.10+
- OpenAI API key (stored in a
.envfile) - Basic understanding of Python programming
- Familiarity with Jupyter notebooks
The tutorial series covers the following topics:
- Multi-Agent Conversation - Create basic conversational agents and manage their interactions
- Sequential Chats - Implement a customer onboarding process using sequential agent interactions
- Reflection and Content Creation - Use nested chats and reflection for collaborative content creation
- Tool Use - Implement and use tools with agents, demonstrated through a conversational chess game
- Code Generation and Financial Analysis - Generate and execute code for financial data analysis
- Planning and Report Generation - Orchestrate multiple specialized agents in a group chat to plan and generate reports
-
Clone this repository:
git clone https://github.com/corticalstack/llm-agents-autogen.git cd llm-agents-autogen -
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.envfile in the root directory with your OpenAI API key:OPENAI_API_KEY=your_api_key_here -
Launch Jupyter Notebook:
jupyter notebook
-
Navigate to any lesson folder (l1-l6) and open the corresponding notebook.
llm-agents-autogen/
├── .gitignore
├── requirements.txt
├── l1/
│ ├── L1_Multi-Agent_Conversation_and_Stand-up_Comedy.ipynb
│ └── utils.py
├── l2/
│ ├── L2_Sequential_Chats_and_Customer_Onboarding.ipynb
│ └── utils.py
├── l3/
│ ├── L3_Reflection_and_Blogpost_Writing.ipynb
│ └── utils.py
├── l4/
│ ├── L4_Tool_Use_and_Conversational_Chess.ipynb
│ └── utils.py
├── l5/
│ ├── L5_Coding_and_Financial_Analysis.ipynb
│ ├── utils.py
│ └── coding/
│ ├── functions.py
│ ├── plot_ytd_stock_gains.py
│ ├── stock_data_plot.py
│ └── stock_prices_YTD_plot.png
└── l6/
├── L6-Planning_and_Stock_Report_Generation.ipynb
└── utils.py
This project is licensed under the terms of the MIT license.