On .NET Live - Demystifying Microsoft Agent Framework Middleware

In this session we'll walk through how Daniel Costea uses ChatClient and Agent middleware to turn plain .NET AI agents into production‑ready systems with observability, safety, and cost control. Starting from an agent that talks directly to an LLM, he walks through real‑world failure modes (cost spikes, privacy leaks, unsafe tool calls) and then layers in SharedFunction, Response, and FunctionCalling middleware to fix them. Along the way, he connects each concept to the familiar ASP.NET Core middleware pattern so .NET developers can reuse an existing mental model for building robust AI agents. ⌚ Chapters: 00:00 Countdown 03:15 Welcome and Intros 05:06 Demystifying Microsoft Agent Framework Middleware - overview 06:15 Building AI Agents in .NET by Daniel Costea 07:00 Intro today's demo scenario - Robby, the robot car AI assistant goes rogue 09:40 Demo 11:30 ChatClient and AGent Middleware Architecture 15:15 Three Middleware Types 19:30 Technical difficulties - talk amongst yourselves 😉😉 24:40 Three Types continued 26:24 Q&A 32:27 Mix and Order ChatClient Middleware Types 34:24 FunctionCalling Interceptor-Executor Pattern 35:45 Demo 36:50 Agent Middleware Architecture 40:05 Demo - Mixed Agent Middleware 56:30 What Each Middleware Type Can See 57:39 More on Daniel's book 58:15 Q&A 01:04:29 Closing 01:05:06 Wrap 🔗 Link: https://github.com/dcostea/AgentFrame... 🎙️ Featuring: Daniel Costea, Katie Savage, Scott Addie, Frank Boucher #dotnet #dotnetdeveloper