Skip to sessions and notes

These session notes are AI-generated and may contain mistakes. Verify important details against the original recording.

The .NET AI Stack: What's New, What's Next, and How It Fits Together

Luis Quintanilla

Session · 27:28 recording · 5 min read

At a glance

  • Microsoft.Extensions.AI shared foundations
  • Native OpenAI & Anthropic IChatClient adapters
  • RoutingChatClient with ONNX decision models
  • DocumentExtractionClient (PDFs, OCR, VLMs)
  • Media Studio Blazor Hybrid multimodal app

Executive Summary

Luis Quintanilla provides an architectural roadmap of the .NET AI Stack in .NET 11, demonstrating how Microsoft's shared abstractions unify models, vector memory, multimodal generation, document ingestion, agent orchestration, and rich interactive user interfaces.

Core Breakthroughs & Architecture Highlights:

  1. The Shared Foundations Layer: Microsoft.Extensions.AI (IChatClient, IEmbeddingGenerator), Microsoft.Extensions.VectorData, Tokenizers, Tensors, and Data Ingestion abstractions form the universal substrate across .NET.
  2. Native Provider Adapters: Official native adapters for IChatClient now ship inside both the official OpenAI and Anthropic C# SDKs, enabling zero-code-churn model swapping.
  3. Local & Small Language Models (SLMs): On-device execution via Hugging Face's "Llama for Windows" (built on .NET 10/11 + WinUI 3 + llama.cpp) and ONNX Runtime.
  4. Intelligent Model Routing & Decision Models: RoutingChatClient leverages policy filters (context window, tool support, cost) or small SLM decision classifiers (like Julia via ONNX Runtime or OpenAI Decision API) to dynamically select the optimal model per prompt.
  5. Multi-Modal Document Extraction (DocumentExtractionClient): A unified contract for converting documents (PDFs, docs) into structured IngestionDocument representations across local OCR (PdfPig), Mistral OCR on Azure Foundry, or Vision Language Models (VLMs).
  6. Beyond Chat / Multimodal Media Pipeline: Showcased Media Studio (a local Blazor Hybrid app) assembling speech input (Whisper), text narration, thumbnail generation (SVG synthesis via IChatClient rendered to PNG), and code-driven animations into full MP4 video files.
  7. Agent Framework & Tooling (MCP + AGUI): Exposing tools via standard C# methods and the Model Context Protocol (MCP C# SDK 2.0); orchestrating agents via the Microsoft Agent Framework; and connecting agents to dynamic UIs using the AGUI protocol and Blazor AI components.

Detailed Section-by-Section Breakdown

1. The .NET AI Shared Foundations

Presenter: Luis Quintanilla

The .NET team has systematically engineered a set of low-level, shared abstractions that eliminate provider lock-in:

  • Microsoft.Extensions.AI: Standardizes chat completion (IChatClient), embeddings (IEmbeddingGenerator), and function/tool invocation.
  • Microsoft.Extensions.VectorData: Common abstractions for vector databases (Qdrant, Pinecone, Azure AI Search, Milvus, SQLite-vec).
  • Data Ingestion: Standardized document loading, semantic chunking, and enrichment pipelines.
  • Real-World Impact: Used in community apps like Jellyfin (self-hosted .NET media server) to add semantic vector search over personal movie/music collections with minimal code.

.NET AI Ecosystem and Shared Foundations
.NET AI Ecosystem and Shared Foundations


2. Media Studio: Full Multimodal Agentic Application

To demonstrate that AI extends far beyond simple chat windows, Luis showcased Media Studio, a local Blazor Hybrid desktop application that acts as an autonomous media production studio:

  • Ingests complex research papers (e.g. academic PDF on "Nested Learning").
  • Transcribes vocal guidance from the user via microphone.
  • Distills core concepts into multi-scene storyboards.
  • Coordinates multimodal generation: speech narration, SVG graphics, thumbnail images, and animations.
  • Renders the final MP4 video artifact using deterministic C# composition code.

Media Studio Blazor Hybrid Application
Media Studio Blazor Hybrid Application

Live Agentic Storyboard Generation and Real-time Editing
Live Agentic Storyboard Generation and Real-time Editing


3. Layered Architecture of the .NET AI Stack

Luis outlined the modular layers that compose the complete .NET AI ecosystem:

┌────────────────────────────────────────────────────────┐
│     User Experience: AGUI Protocol & Blazor AI         │
├────────────────────────────────────────────────────────┤
│   Agents & Tooling: Agent Framework & MCP C# SDK 2.0   │
├────────────────────────────────────────────────────────┤
│ Multimodal Pipeline: Audio, Speech, Image, SVG, Video  │
├────────────────────────────────────────────────────────┤
│  Data & Context: DocumentExtractionClient & Ingestion  │
├────────────────────────────────────────────────────────┤
│ Models & Routing: IChatClient, RoutingChatClient, SLMs │
├────────────────────────────────────────────────────────┤
│ Shared Foundations: Extensions.AI, VectorData, Tensors │
└────────────────────────────────────────────────────────┘

The .NET AI Stack Layered Architecture
The .NET AI Stack Layered Architecture

End-to-End Execution Trace from PDF to Agentic Video
End-to-End Execution Trace from PDF to Agentic Video


4. Model Connectivity & Native IChatClient Adapters

  • Unified Surface: Both the OpenAI C# SDK and the Anthropic C# SDK now ship native built-in adapters for IChatClient.
  • Portability: Developers can switch between OpenAI GPT-4o, Claude 3.5 Sonnet, or local open models with zero changes to downstream agent or application logic.
  • Local On-Device Models: Supported via Hugging Face’s "Llama for Windows" desktop app, allowing local execution through llama.cpp and WinUI 3.
// Switching providers requires changing only the client initialization:
IChatClient client = new AnthropicClient(apiKey).AsChatClient("claude-3-5-sonnet");
// or
IChatClient client = new OpenAIClient(apiKey).AsChatClient("gpt-4o");

IChatClient Adapters in OpenAI and Anthropic SDKs
IChatClient Adapters in OpenAI and Anthropic SDKs


5. Intelligent Model Routing via Decision Models

Not every task requires a frontier cloud model:

  • RoutingChatClient: Routes requests based on policies (JSON schema support, required tool calling, context window length, latency budget).
  • Decision Models: As complexity increases, hardcoded if/switch statements become brittle. Developers can plug in small SLM decision classifiers—such as Julia running locally via ONNX Runtime, or cloud-based decision APIs—to inspect free-form prompts and dispatch them to the optimal model.

RoutingChatClient with Local ONNX Decision Models
RoutingChatClient with Local ONNX Decision Models


6. Document Extraction Client (DocumentExtractionClient)

Business data primarily lives inside documents. .NET 11 introduces DocumentExtractionClient:

  • Ingests raw files (PDFs, Word docs, scanned manuals) and extracts paragraphs, tables, and images into an IngestionDocument.
  • Pluggable Backends:
    • Local fast open-source parsers (e.g. PdfPig).
    • Cloud OCR models (e.g. Mistral OCR on Azure Foundry).
    • Any Vision Language Model (VLM) running through IChatClient.
  • Extracted sections pass through the Data Ingestion Pipeline for semantic chunking and vector database indexing.

DocumentExtractionClient Multi-Backend Architecture
DocumentExtractionClient Multi-Backend Architecture


7. Creative Multimodal Synthesis: SVG Generation via IChatClient

Luis demonstrated the flexibility of .NET AI contracts:

  • Media Studio requires thumbnail image generation.
  • Rather than calling an external diffusion model API, the team implemented IImageGenerator backed by an IChatClient:
    1. The prompt requests the LLM to output clean vector SVG code.
    2. The application rasterizes the SVG to PNG.
    3. The IImageGenerator contract (text-in, image-out) is fully satisfied with zero external image-model dependencies!

Custom IImageGenerator Implementation via IChatClient SVG
Custom IImageGenerator Implementation via IChatClient SVG


8. Agent Framework, MCP C# SDK & Agentic UI (AGUI)

The upper layers of the AI stack bring autonomous actions into user interfaces:

  • Tools: Exposing standard C# methods or remote tools via the Model Context Protocol (MCP C# SDK 2.0).
  • Microsoft Agent Framework: Orchestrates agents, memory, and tools on top of IChatClient, with built-in interoperability for the GitHub Copilot SDK.
  • AGUI Protocol & Blazor AI Components: An open agent-user-interaction protocol with a dedicated C# SDK. Blazor AI components stream events directly between the user interface and background agents, allowing users to converse, adjust parameters, and watch canvas scenes update live in real time.

Microsoft Agent Framework, MCP, and AGUI Blazor Integration
Microsoft Agent Framework, MCP, and AGUI Blazor Integration