GrpcKernelExtensions.ImportPluginFromGrpc(Kernel, Stream, String) Method

Definition

Registers an gRPC plugin.

public static Microsoft.SemanticKernel.KernelPlugin ImportPluginFromGrpc (this Microsoft.SemanticKernel.Kernel kernel, System.IO.Stream documentStream, string pluginName);
static member ImportPluginFromGrpc : Microsoft.SemanticKernel.Kernel * System.IO.Stream * string -> Microsoft.SemanticKernel.KernelPlugin
<Extension()>
Public Function ImportPluginFromGrpc (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