News

Microsoft Shows How to Upgrade .NET AI Chat Apps with Agent Framework

Microsoft published a walkthrough demonstrating how to upgrade a .NET AI chat app built from the official .NET AI templates to use the new Microsoft Agent Framework. The preview framework extends basic chat functionality by enabling reasoning, multi-step workflows, and tool-based decision-making within .NET applications.

Microsoft Agent Framework is described as the next evolution beyond chatbots, allowing AI agents to plan, make autonomous decisions, maintain conversation context, and coordinate with other agents. It is built on familiar .NET patterns such as dependency injection, middleware, and telemetry, integrating directly with Microsoft.Extensions.AI.

The tutorial begins with creating a standard AI Chat Web App using the .NET AI templates in Visual Studio or the CLI. Developers install the templates with dotnet new install Microsoft.Extensions.AI.Templates, then configure Azure OpenAI or GitHub Models as the AI provider and .NET Aspire for orchestration.

The generated project includes a Blazor chat interface, orchestration host, and shared service configuration. Developers then enhance the chat experience by integrating Microsoft Agent Framework, which adds structured reasoning and decision-making to the chat process through extensible agent components.

According to Microsoft, the Agent Framework supports scenarios where multiple agents can collaborate, call APIs, and interact with external services. It builds on the same dependency injection and service registration model familiar to .NET developers, helping simplify integration into existing applications.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Microsoft Highlights Visual Studio Live! Event Lineup and Longtime Developer Community Role

    A Microsoft MVP Blog post on Visual Studio Live!'s longevity arrives as the 2026 conference series continues with upcoming stops at Microsoft HQ, San Diego and Orlando.

  • Using Local AI to Cut Copilot Usage-Based Billing Shock

    After being gobsmacked by the new billing plan using almost all my monthly credits in one or two days, I tried pushing some Copilot-style coding work onto local models in VS Code. What I found was less "free AI" and more "pick your pain": cloud charges on one side, heavy local resource use and long waits on the other.

  • .NET 11 Preview 5 Focuses on Performance, Productivity and Safer Code

    .NET 11 Preview 5 focuses on under-the-hood runtime performance gains, streamlined APIs and language features that reduce boilerplate, plus built‑in security checks and incremental ASP.NET Core and EF Core improvements aimed at everyday developer productivity.

  • VS Code 1.124 Focuses on Agent Autonomy and Parallel Sessions

    Microsoft's June 2026 VS Code update turns on Autopilot by default and adds background sending for agent sessions.

Subscribe on YouTube