Share via


GrpcKernelExtensions.CreatePluginFromGrpcDirectory Method

Definition

Imports gRPC document from a directory.

public static Microsoft.SemanticKernel.KernelPlugin CreatePluginFromGrpcDirectory (this Microsoft.SemanticKernel.Kernel kernel, string parentDirectory, string pluginDirectoryName);
static member CreatePluginFromGrpcDirectory : Microsoft.SemanticKernel.Kernel * string * string -> Microsoft.SemanticKernel.KernelPlugin
<Extension()>
Public Function CreatePluginFromGrpcDirectory (kernel As Kernel, parentDirectory As String, pluginDirectoryName As String) As KernelPlugin

Parameters

kernel
Kernel

The Kernel containing services, plugins, and other state for use throughout the operation.

parentDirectory
String

Directory containing the plugin directory.

pluginDirectoryName
String

Name of the directory containing the selected plugin.

Returns

A list of all the prompt functions representing the plugin.

Applies to