Skip to main content

Posts

Showing posts with the label microsoft semantic kernel

Semantic Kernel C# Tutorial: Build AI Agents Step by Step

Learn Microsoft Semantic Kernel in C# with this step-by-step tutorial. Build AI agents, plugins, and copilots in .NET with runnable code. Start today. If you want to add real AI capabilities to a .NET application, Semantic Kernel C# is the fastest, most production-ready route available today. Microsoft Semantic Kernel (SK) is an open-source SDK that lets you plug large language models like GPT-4o, Claude, or local models into ordinary C# code, give them tools (called plugins ), and let them plan and execute multi-step tasks. In this Semantic Kernel tutorial you will build an AI agent step by step: from a "hello world" chat completion, through function calling with your own C# methods, to a stateful copilot that can answer questions about your own data. Every example targets .NET 8 or later and uses the stable Microsoft.SemanticKernel package. You can copy the code straight into a console app and run it. What Is Microsoft Semantic Kernel and Why Use It in C#? At its...