GrpcKernelExtensions.CreatePluginFromGrpc(Kernel, Stream, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.