What is Semantic Kernel?
Semantic Kernel is Microsoft's open-source SDK for integrating AI into applications. It's primarily used in the .NET ecosystem (C#), though a Python version also exists. The SDK provides abstractions for prompt management, plugins (tools the model can call), planners (multi-step reasoning), and memory (conversation context).
It's designed for enterprise development teams that are already invested in the Microsoft/.NET ecosystem. If your company runs on ASP.NET Core, Azure, and Visual Studio, Semantic Kernel fits naturally into your stack. The AddOpenAIChatCompletion method accepts a custom endpoint URI, so pointing it at EUrouter takes one parameter change. Your kernel, plugins, and prompt templates all stay the same.
Quick to integrate
A few lines of code is all it takes. Swap your base URL and you are routed through EUrouter.
1using Microsoft.SemanticKernel;
2
3var kernel = Kernel.CreateBuilder()
4 .AddOpenAIChatCompletion(
5 modelId: "gpt-4o",
6 apiKey: "eur-...",
7 endpoint: new Uri("https://api.eurouter.ai/v1"))
8 .Build();
9
10var result = await kernel
11 .InvokePromptAsync("Explain GDPR Article 44");
12Console.WriteLine(result);Get started in minutes
Follow these steps to connect your application to EUrouter.
Install Semantic Kernel
Add the Semantic Kernel NuGet package to your project.
1dotnet add package Microsoft.SemanticKernelConfigure the endpoint
Set the EUrouter endpoint when adding the OpenAI chat completion service.
1using Microsoft.SemanticKernel;
2
3var kernel = Kernel.CreateBuilder()
4 .AddOpenAIChatCompletion(
5 modelId: "gpt-4o",
6 apiKey: "eur-...",
7 endpoint: new Uri("https://api.eurouter.ai/v1"))
8 .Build();Run your AI logic
Use Semantic Kernel as normal. All LLM calls route through EUrouter in the EU.
1var result = await kernel.InvokePromptAsync(
2 "Summarize EU data protection regulations");
3Console.WriteLine(result);Why use Semantic Kernel with EUrouter
.NET AI with EU compliance
Most AI frameworks target Python first. Semantic Kernel is built for .NET, which means C# developers don't need to bolt on a Python service just to use LLMs. EUrouter makes it GDPR-compliant: your ASP.NET Core app talks to EUrouter's EU endpoint instead of OpenAI's US servers.
- First-class .NET and C# support with strong typing throughout
- Integrates naturally with ASP.NET Core dependency injection and middleware
- Azure-hosted .NET apps can route model calls through EU via EUrouter
- All Semantic Kernel plugins and connectors work without modification
Enterprise AI agents
Semantic Kernel's planner lets AI agents break down complex tasks into steps and execute them using plugins. Each step involves an LLM call. With EUrouter, every one of those calls goes through EU infrastructure, so your agents stay GDPR-compliant no matter how many steps they take.
- Planner calls (where the model decides what to do next) route through EU infrastructure
- Plugin execution results and follow-up LLM calls stay GDPR-compliant
- Memory and retrieval operations can use EUrouter's embeddings API
- Full audit trail of all model interactions for compliance reporting
Multi-model kernel
You can register multiple model services in a single Semantic Kernel instance. Through EUrouter, that means different prompt functions can use different models: GPT-4o for complex reasoning, Mistral for quick operations, Claude for writing. One kernel, multiple models, all in Europe.
- Register multiple OpenAI chat completion services pointing to different EUrouter models
- Assign specific models to specific prompt functions based on task requirements
- EUrouter's smart routing can also optimize model selection per call
- One API key covers all model registrations