Skip to content

Agentic AI Design Patterns Workshop

Disclaimer

This is not an official Microsoft product, does not represent official Microsoft learning materials, product documentation, or official statements by Microsoft Corporation. The content, opinions, and recommendations presented herein are the authors' own, provided solely for educational purposes, and should not be construed as official Microsoft guidance or endorsement.

Welcome to the Agentic AI Design Patterns Workshop — a hands-on, multi-part workshop that teaches you how to build AI agents and multi-agent systems using pure Python and the OpenAI SDK. No AI frameworks required.

What You'll Learn

By the end of this workshop you will understand:

  1. How LLMs work as building blocks (chat completions, system prompts, structured outputs)
  2. How to give LLMs tools and build the core agent loop (Reason → Act → Observe)
  3. Five multi-agent orchestration patterns and when to use each one
  4. How context flows between agents in each pattern
  5. Practical considerations: reliability, human-in-the-loop, and choosing the right pattern

Learning Path

graph LR
    A[LLM Basics] --> B[Tool Use]
    B --> C[Single Agent]
    C --> D[Orchestration Patterns]
    D --> E1[Sequential]
    D --> E2[Concurrent]
    D --> E3[Group Chat]
    D --> E4[Handoff]
    D --> E5[Magentic]

Workshop Structure

Part Topics Exercises
Part 1 LLM fundamentals, tool use, single agents 00_setup → 03_single_agent
Part 2 Sequential, concurrent, group chat patterns 04_sequential → 06_group_chat
Part 3 Handoff, magentic, implementation topics 07_handoff → 08_magentic

Philosophy

This workshop deliberately avoids AI agent frameworks. Instead, you build everything from scratch using:

  • OpenAI Python SDK — the openai package for LLM calls
  • Pydantic — for structured outputs and tool parameter schemas
  • Python standard library — logging, dataclasses, concurrent.futures, pathlib

By building each pattern yourself, you understand exactly what frameworks like the Microsoft Agent Framework do under the hood. This makes you a better user of any framework you choose later.

Provider Flexibility

Every exercise works with any of these providers — just set LLM_PROVIDER in your .env:

Provider LLM_PROVIDER What You Need
GitHub Models github GitHub token (free tier available)
OpenAI openai OpenAI API key
Azure AI Foundry azure Azure OpenAI endpoint + key

Getting Started

  1. Read the Setup Guide to configure your environment
  2. Work through the Concepts section to build foundations
  3. Tackle each Pattern with its corresponding exercise
  4. Review Production Considerations for real-world engineering challenges

Read first, then code

Each pattern has a documentation page (you're reading the docs now) and a hands-on exercise in the exercises/ folder. Always read the docs page first to understand what and why, then open the exercise to see how and practice.