KernelExtensions Class
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.
Provides extension methods for interacting with Kernel and related types.
public static class KernelExtensions
type KernelExtensions = class
Public Module KernelExtensions
- Inheritance
-
KernelExtensions
Methods
Add(IKernelBuilderPlugins, KernelPlugin) |
Adds the |
AddFromFunctions(ICollection<KernelPlugin>, String, IEnumerable<KernelFunction>) |
Creates a plugin that contains the specified functions and adds it into the plugin collection. |
AddFromFunctions(ICollection<KernelPlugin>, String, String, IEnumerable<KernelFunction>) |
Creates a plugin that contains the specified functions and adds it into the plugin collection. |
AddFromFunctions(IKernelBuilderPlugins, String, IEnumerable<KernelFunction>) |
Creates a plugin that wraps the specified target object and adds it into the plugin collection. |
AddFromFunctions(IKernelBuilderPlugins, String, String, IEnumerable<KernelFunction>) |
Creates a plugin that wraps the specified target object and adds it into the plugin collection. |
AddFromObject(ICollection<KernelPlugin>, Object, String, IServiceProvider) |
Creates a plugin that wraps the specified target object and adds it into the plugin collection. |
AddFromObject(IKernelBuilderPlugins, Object, String) |
Creates a plugin that wraps the specified target object and adds it into the plugin collection. |
AddFromPromptDirectory(IKernelBuilderPlugins, String, String, IPromptTemplateFactory) |
Creates a plugin containing one function per child directory of the specified |
AddFromType<T>(ICollection<KernelPlugin>, String, IServiceProvider) |
Creates a plugin that wraps a new instance of the specified type |
AddFromType<T>(IKernelBuilderPlugins, String) |
Creates a plugin that wraps a new instance of the specified type |
Build(IKernelBuilder) |
Constructs a new instance of Kernel using all of the settings configured on the builder. |
CreateFunctionFromMethod(Kernel, Delegate, String, String, IEnumerable<KernelParameterMetadata>, KernelReturnParameterMetadata) |
Creates a KernelFunction instance for a method, specified via a delegate. |
CreateFunctionFromMethod(Kernel, MethodInfo, Object, String, String, IEnumerable<KernelParameterMetadata>, KernelReturnParameterMetadata) |
Creates a KernelFunction instance for a method, specified via an MethodInfo instance and an optional target object if the method is an instance method. |
CreateFunctionFromPrompt(Kernel, PromptTemplateConfig, IPromptTemplateFactory) |
Creates a KernelFunction instance for a prompt specified via a prompt template configuration. |
CreateFunctionFromPrompt(Kernel, String, IEnumerable<PromptExecutionSettings>, String, String, String, IPromptTemplateFactory) |
Creates a KernelFunction instance for a prompt specified via a prompt template. |
CreateFunctionFromPrompt(Kernel, String, PromptExecutionSettings, String, String, String, IPromptTemplateFactory) |
Creates a KernelFunction instance for a prompt specified via a prompt template. |
CreatePluginFromFunctions(Kernel, String, IEnumerable<KernelFunction>) |
Creates a plugin that contains the specified functions. |
CreatePluginFromFunctions(Kernel, String, String, IEnumerable<KernelFunction>) |
Creates a plugin that contains the specified functions. |
CreatePluginFromObject(Kernel, Object, String) |
Creates a plugin that wraps the specified target object. |
CreatePluginFromPromptDirectory(Kernel, String, String, IPromptTemplateFactory) |
Creates a plugin containing one function per child directory of the specified |
CreatePluginFromType<T>(Kernel, String) |
Creates a plugin that wraps a new instance of the specified type |
ImportPluginFromFunctions(Kernel, String, IEnumerable<KernelFunction>) |
Creates a plugin that contains the specified functions and imports it into the |
ImportPluginFromFunctions(Kernel, String, String, IEnumerable<KernelFunction>) |
Creates a plugin that contains the specified functions and imports it into the |
ImportPluginFromObject(Kernel, Object, String) |
Creates a plugin that wraps the specified target object and imports it into the |
ImportPluginFromPromptDirectory(Kernel, String, String, IPromptTemplateFactory) |
Creates a plugin containing one function per child directory of the specified |
ImportPluginFromType<T>(Kernel, String) |
Creates a plugin that wraps a new instance of the specified type |
InvokePromptAsync(Kernel, String, KernelArguments, String, IPromptTemplateFactory, CancellationToken) |
Invokes a prompt specified via a prompt template. |
InvokePromptAsync<T>(Kernel, String, KernelArguments, String, IPromptTemplateFactory, CancellationToken) |
Invokes a prompt specified via a prompt template and returns the results of type |
InvokePromptAsync<T>(Kernel, String, KernelArguments, String, IPromptTemplateFactory) |
Invokes a prompt specified via a prompt template and returns the results of type |
InvokePromptStreamingAsync(Kernel, String, KernelArguments, String, IPromptTemplateFactory, CancellationToken) |
Invokes a prompt specified via a prompt template and streams its results. |
InvokePromptStreamingAsync<T>(Kernel, String, KernelArguments, String, IPromptTemplateFactory, CancellationToken) |
Invokes a prompt specified via a prompt template and streams its results of type |