Integrate AI API Proxy with Microsoft Semantic Kernel. Build AI-powered applications with skills, planners, and native C# support.
Enterprise features for your .NET AI applications
Quick start with Semantic Kernel and Gateway
// Import Semantic Kernel and Gateway using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Connectors.Gateway; // Create kernel with gateway backend var builder = Kernel.CreateBuilder(); builder.AddGatewayChatCompletion( endpoint: "https://gateway.example.com", apiKey: "your-gateway-key", modelId: "gpt-4" ); var kernel = builder.Build(); // Import a native skill public class TimeSkill { [KernelFunction] public string GetCurrentTime() => DateTime.Now.ToString(); } kernel.ImportSkill(new TimeSkill(), "time"); // Use planner to orchestrate var planner = new SequentialPlanner(kernel); var plan = await planner.CreatePlan("What time is it?"); // Execute the plan var result = await kernel.RunAsync(plan); Console.WriteLine(result);
Build powerful AI applications with skills