Freigeben über


KernelFunction.Clone(String) Method

Definition

Creates a new KernelFunction object that is a copy of the current instance but the KernelFunctionMetadata has the plugin name set.

public abstract Microsoft.SemanticKernel.KernelFunction Clone (string pluginName);
abstract member Clone : string -> Microsoft.SemanticKernel.KernelFunction
Public MustOverride Function Clone (pluginName As String) As KernelFunction

Parameters

pluginName
String

The name of the plugin this function instance will be added to.

Returns

Remarks

This method should only be used to create a new instance of a KernelFunction when adding a function to a KernelPlugin.

Applies to