Share via


GrpcKernelExtensions.CreatePluginFromGrpc(Kernel, Stream, String) Method

Definition

Registers an gRPC plugin.

public static Microsoft.SemanticKernel.KernelPlugin CreatePluginFromGrpc (this Microsoft.SemanticKernel.Kernel kernel, System.IO.Stream documentStream, string pluginName);
static member CreatePluginFromGrpc : Microsoft.SemanticKernel.Kernel * System.IO.Stream * string -> Microsoft.SemanticKernel.KernelPlugin
<Extension()>
Public Function CreatePluginFromGrpc (kernel As Kernel, documentStream As Stream, pluginName As String) As KernelPlugin

Parameters

kernel
Kernel

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

documentStream
Stream

.proto document stream.

pluginName
String

Plugin name.

Returns

A list of all the prompt functions representing the plugin.

Applies to