Freigeben über


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

Services

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

Extension Methods

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.

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.

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