IKernelBuilderPlugins Interface

Definition

Provides a builder for adding plugins as singletons to a service collection.

public interface IKernelBuilderPlugins
type IKernelBuilderPlugins = interface
Public Interface IKernelBuilderPlugins

Properties

Name Description
Services

Gets the collection of services to which plugins should be added.

Extension Methods

Name Description
Add(IKernelBuilderPlugins, KernelPlugin)

Adds the plugin to the plugins.

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(IKernelBuilderPlugins, Object, String)

Creates a plugin that wraps the specified target object and adds it into the plugin collection.

AddFromObject<T>(IKernelBuilderPlugins, T, JsonSerializerOptions, String)

Creates a plugin that wraps the specified target object and adds it into the plugin collection.

AddFromPromptDirectory(IKernelBuilderPlugins, String, JsonSerializerOptions, String, IPromptTemplateFactory)

Creates a plugin containing one function per child directory of the specified pluginDirectory and adds it into the plugin collection.

AddFromPromptDirectory(IKernelBuilderPlugins, String, String, IPromptTemplateFactory)

Creates a plugin containing one function per child directory of the specified pluginDirectory and adds it into the plugin collection.

AddFromPromptDirectoryYaml(IKernelBuilderPlugins, String, String, IPromptTemplateFactory)

Creates a plugin containing one function per YAML file in the pluginDirectory.

AddFromType<T>(IKernelBuilderPlugins, JsonSerializerOptions, String)

Creates a plugin that wraps a new instance of the specified type T and adds it into the plugin collection.

AddFromType<T>(IKernelBuilderPlugins, String)

Creates a plugin that wraps a new instance of the specified type T and adds it into the plugin collection.

Applies to