AggregatorPromptTemplateFactory Class
- java.
lang. Object - com.
microsoft. semantickernel. semanticfunctions. AggregatorPromptTemplateFactory
- com.
Implements
public class AggregatorPromptTemplateFactory
implements PromptTemplateFactory
An collection of PromptTemplateFactory instances. The factory will try to create a PromptTemplate using each factory in the collection until one is successful.
Constructor Summary
| Constructor | Description |
|---|---|
| AggregatorPromptTemplateFactory(List<PromptTemplateFactory> templateFactories) |
Creates a new instance of AggregatorPromptTemplateFactory. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Prompt |
tryCreate(PromptTemplateConfig templateConfig)
Create a prompt template, if possible, from the given configuration. |
Methods inherited from java.lang.Object
Constructor Details
AggregatorPromptTemplateFactory
public AggregatorPromptTemplateFactory(List
Creates a new instance of AggregatorPromptTemplateFactory.
Parameters:
Method Details
tryCreate
public PromptTemplate tryCreate(PromptTemplateConfig templateConfig)
Create a prompt template, if possible, from the given configuration. If the PromptTemplateConfig is not supported, the method should throw an UnknownTemplateFormatException.
Parameters: