Share via


KernelPluginExtensions.GetFunction Method

Definition

Gets a function from the collection by plugin and function names.

public static Microsoft.SemanticKernel.KernelFunction GetFunction (this Microsoft.SemanticKernel.IReadOnlyKernelPluginCollection plugins, string? pluginName, string functionName);
static member GetFunction : Microsoft.SemanticKernel.IReadOnlyKernelPluginCollection * string * string -> Microsoft.SemanticKernel.KernelFunction
<Extension()>
Public Function GetFunction (plugins As IReadOnlyKernelPluginCollection, pluginName As String, functionName As String) As KernelFunction

Parameters

plugins
IReadOnlyKernelPluginCollection

The collection.

pluginName
String

The name of the plugin storing the function.

functionName
String

The name of the function.

Returns

The function from the collection.

Applies to