Partager via


KernelPluginCollection.Add(KernelPlugin) Method

Definition

Adds the plugin to the plugin collection.

public void Add (Microsoft.SemanticKernel.KernelPlugin plugin);
abstract member Add : Microsoft.SemanticKernel.KernelPlugin -> unit
override this.Add : Microsoft.SemanticKernel.KernelPlugin -> unit
Public Sub Add (plugin As KernelPlugin)

Parameters

plugin
KernelPlugin

The plugin to add.

Implements

Exceptions

plugin.Name is null.

A plugin with the same name already exists in the collection.

Applies to