KernelFunction.Clone(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.