Share via


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. ///

Applies to