Partager via


KernelExtensions.Build(IKernelBuilder) Method

Definition

Constructs a new instance of Kernel using all of the settings configured on the builder.

public static Microsoft.SemanticKernel.Kernel Build (this Microsoft.SemanticKernel.IKernelBuilder builder);
static member Build : Microsoft.SemanticKernel.IKernelBuilder -> Microsoft.SemanticKernel.Kernel
<Extension()>
Public Function Build (builder As IKernelBuilder) As Kernel

Parameters

builder
IKernelBuilder

Returns

The new Kernel instance.

Remarks

Every call to Build(IKernelBuilder) produces a new Kernel instance. The resulting Kernel instances will not share the same plugins collection or services provider (unless there are no services).

Applies to