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