Microsoft Agent Framework Workshop
Welcome to this beginner-friendly Microsoft Agent Framework workshop. Every exercise is based on official Microsoft Learn documentation and the microsoft/agent-framework repository so you can trust the patterns you learn here.
The examples use lightweight healthcare and life-sciences scenarios to keep a consistent thread across all lessons.
What this workshop covers
| # | Lesson | What you will learn |
|---|---|---|
| 00 | Prerequisites | Azure subscription, Python environment, Foundry project and model deployment |
| 01 | Your First Agent | Create an agent with FoundryChatClient, get non-streaming and streaming responses |
| 02 | Conversations & Memory | Multi-turn conversations with AgentSession, persistent memory with InMemoryHistoryProvider |
| 03 | Tools & Function Calling | Define function tools with @tool, let the agent call custom code |
| 04 | Your First Workflow | Build a deterministic two-agent pipeline with executors and edges |
| 05 | Dynamic Orchestration | Coordinate specialist agents dynamically with MagenticBuilder |
| 06 | Observability | Trace agent runs with OpenTelemetry |
| 07 | DevUI | Launch the browser-based developer UI and interact with your agents visually |
Design goals
- Keep the flow easy to follow.
- Favour official documentation over custom theory.
- Keep examples short and runnable.
- Use a lightweight docs-first web UI.
Official sources used
- Microsoft Agent Framework overview
- Your First Agent tutorial
- Sessions & Conversations
- Context Providers
- Function Tools
- Workflows overview
- microsoft/agent-framework GitHub repository
Repository layout
.
├── docs/ ← lesson pages (served by MkDocs)
├── examples/ ← runnable Python scripts
├── mkdocs.yml
├── requirements.txt
└── SETUP.md
Quick start
-
Clone the repository and set up the Python environment:
-
Sign in to Azure:
-
Configure your environment variables:
-
Follow the lessons on this site starting with Prerequisites.
Full setup instructions are in SETUP.md.