Freigeben über


GrpcKernelExtensions.CreatePluginFromGrpcFile(Kernel, String, String) Method

Definition

Imports gRPC document from a file.

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

Parameters

kernel
Kernel

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

filePath
String

File path to .proto document.

pluginName
String

Name of the plugin to register.

Returns

A list of all the prompt functions representing the plugin.

Applies to