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:
- The Shared Foundations Layer:
Microsoft.Extensions.AI(IChatClient,IEmbeddingGenerator),Microsoft.Extensions.VectorData, Tokenizers, Tensors, and Data Ingestion abstractions form the universal substrate across .NET. - Native Provider Adapters: Official native adapters for
IChatClientnow ship inside both the official OpenAI and Anthropic C# SDKs, enabling zero-code-churn model swapping. - 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. - Intelligent Model Routing & Decision Models:
RoutingChatClientleverages 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. - Multi-Modal Document Extraction (
DocumentExtractionClient): A unified contract for converting documents (PDFs, docs) into structuredIngestionDocumentrepresentations across local OCR (PdfPig), Mistral OCR on Azure Foundry, or Vision Language Models (VLMs). - Beyond Chat / Multimodal Media Pipeline: Showcased Media Studio (a local Blazor Hybrid app) assembling speech input (Whisper), text narration, thumbnail generation (SVG synthesis via
IChatClientrendered to PNG), and code-driven animations into full MP4 video files. - 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.

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.


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 │
└────────────────────────────────────────────────────────┘


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.cppand 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");

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/switchstatements 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.

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.
- Local fast open-source parsers (e.g.
- Extracted sections pass through the Data Ingestion Pipeline for semantic chunking and vector database indexing.

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
IImageGeneratorbacked by anIChatClient:- The prompt requests the LLM to output clean vector SVG code.
- The application rasterizes the SVG to PNG.
- The
IImageGeneratorcontract (text-in, image-out) is fully satisfied with zero external image-model dependencies!

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.
