Share via


Kernel(IServiceProvider, KernelPluginCollection) Constructor

Definition

Initializes a new instance of Kernel.

public Kernel (IServiceProvider? services = default, Microsoft.SemanticKernel.KernelPluginCollection? plugins = default);
new Microsoft.SemanticKernel.Kernel : IServiceProvider * Microsoft.SemanticKernel.KernelPluginCollection -> Microsoft.SemanticKernel.Kernel
Public Sub New (Optional services As IServiceProvider = Nothing, Optional plugins As KernelPluginCollection = Nothing)

Parameters

services
IServiceProvider

The IServiceProvider used to query for services available through the kernel.

plugins
KernelPluginCollection

The collection of plugins available through the kernel. If null, an empty collection will be used. If non-null, the supplied collection instance is used, not a copy; if it's desired for the Kernel to have a copy, the caller is responsible for supplying it.

Remarks

The KernelBuilder class provides a fluent API for constructing a Kernel instance.

Applies to