Tutorials Microsoft Agent Framework with Ollama Tutorial
Semantic Kernel Basics
Semantic Kernel Basics: free step-by-step lesson with examples, common mistakes, and interview tips — part of Microsoft Agent Framework with Ollama Tutorial on Toolliyo Academy.
On this page
Microsoft Agent Framework with Ollama Tutorial · Lesson 31 of 100
Semantic Kernel Basics
Foundations & Ollama ✓ → .NET & Agents → RAG & Ops → Projects
.NET & Agents · 2 — Kernel · ~6 min · Semantic Kernel & Agents
What is this?
Semantic Kernel (SK) is a .NET SDK that connects LLMs, prompts, and tools (plugins). You build a Kernel, add a chat service, then invoke prompts or agents.
Why should you care?
Microsoft’s agent-style apps in .NET commonly use SK to keep tool calling and prompts organized.
See it live — copy this example
Run CLI steps in a terminal. Run C# samples in a .NET 8 console or Web API project with Ollama running on localhost:11434.
// dotnet add package Microsoft.SemanticKernel
using Microsoft.SemanticKernel;
var builder = Kernel.CreateBuilder();
// Next lesson: add Ollama chat completion
var kernel = builder.Build();
Console.WriteLine("Kernel ready");
What happened?
- CreateBuilder starts configuration.
- Build() creates the Kernel object your plugins and chat services hang off.
Practice next
- Create a Web/console app.
- Add the SemanticKernel package.
- Build an empty kernel.
- Print kernel.Plugins.Count.
- Add logging to the builder.
Remember
SK organizes LLM + tools in .NET. Kernel is the hub object. Plugins expose tools to the model.
SK as the agent spine
LocalAIDesk uses one Kernel per request scope.
Outcome: Clear place to register tools.
Interview prep for this lesson
Practice these questions aloud after reading—each links to a full structured answer.
Sign in to ask a question or upvote helpful answers.
No questions yet — be the first to ask!