Share via


KernelExtensions.Add(IKernelBuilderPlugins, KernelPlugin) Method

Definition

Adds the plugin to the plugins.

public static Microsoft.SemanticKernel.IKernelBuilderPlugins Add (this Microsoft.SemanticKernel.IKernelBuilderPlugins plugins, Microsoft.SemanticKernel.KernelPlugin plugin);
static member Add : Microsoft.SemanticKernel.IKernelBuilderPlugins * Microsoft.SemanticKernel.KernelPlugin -> Microsoft.SemanticKernel.IKernelBuilderPlugins
<Extension()>
Public Function Add (plugins As IKernelBuilderPlugins, plugin As KernelPlugin) As IKernelBuilderPlugins

Parameters

plugins
IKernelBuilderPlugins

The plugin collection to which the plugin should be added.

plugin
KernelPlugin

The plugin to add.

Returns

The same instance as plugins.

Applies to