Skip to content

All Exercises

A quick-reference index of every hands-on exercise in the workshop. Click any exercise to jump to its page with full details.

Running exercises

You can run exercises individually from the terminal, or use the interactive Workshop TUI to browse and run them all from one place.

0 โ€” Setup

Exercise Description
Connection Test Verify your OpenAI / Azure OpenAI connection is working

1 โ€” LLM Foundations

Exercise Description
Chat Completion Single-turn and multi-turn conversations with a travel assistant
System Prompts Same query, different personas โ€” see how system prompts shape behavior
Structured Outputs Extract structured JSON from product reviews using Pydantic models

Concepts: Chat Completions API ยท System Prompts ยท Structured Outputs ยท What Is an Agent?

2 โ€” Tools & Function Calling

Exercise Description
Function Calling Define tools with pydantic_function_tool() and make a single-pass tool call
Tool Loop Build the full agent loop: reason โ†’ call tool โ†’ observe โ†’ repeat

Concepts: Function Calling ยท The Agent Run Loop

3 โ€” Single Agent

Exercise Description
Customer Support Agent Multi-turn agent with order lookup, FAQ search, and refund processing

Pattern: Single Agent

4 โ€” Sequential Pattern

Exercise Description
Content Pipeline Research โ†’ draft โ†’ edit pipeline with explicit context passing between stages

Pattern: Sequential

5 โ€” Concurrent Pattern

Exercise Description
Stock Analysis Fan-out/fan-in with 3 parallel analysts and an aggregator

Pattern: Concurrent

6 โ€” Group Chat Pattern

Exercise Description
Brainstorm PM, Designer, and Engineer debate a product idea in rounds
Maker-Checker Code generator + reviewer in a reflection loop

Patterns: Brainstorm (Round-Robin) ยท Maker-Checker (Reflection)

7 โ€” Handoff Pattern

Exercise Description
Support Triage Triage agent classifies queries and routes to billing, technical, or account specialists

Pattern: Handoff

8 โ€” Magentic Pattern

Exercise Description
Incident Response Manager coordinates diagnostic, infrastructure, and communication workers

Pattern: Magentic