Freigeben über


AggregatorPromptTemplateFactory Class

Definition

Provides a IPromptTemplateFactory which aggregates multiple prompt template factories.

public sealed class AggregatorPromptTemplateFactory : Microsoft.SemanticKernel.IPromptTemplateFactory
type AggregatorPromptTemplateFactory = class
    interface IPromptTemplateFactory
Public NotInheritable Class AggregatorPromptTemplateFactory
Implements IPromptTemplateFactory
Inheritance
AggregatorPromptTemplateFactory
Implements

Remarks

Attempts via TryCreate(PromptTemplateConfig, IPromptTemplate) to create an IPromptTemplate from a PromptTemplateConfig will iterate through the aggregated factories, using the result from the first to successfully handle the supplied configuration. ///

Constructors

AggregatorPromptTemplateFactory(IPromptTemplateFactory[])

Initializes the instance.

Methods

TryCreate(PromptTemplateConfig, IPromptTemplate)

Creates an instance of IPromptTemplate from a PromptTemplateConfig.

Extension Methods

Create(IPromptTemplateFactory, PromptTemplateConfig)

Creates an instance of IPromptTemplate from a PromptTemplateConfig.

Applies to