KernelPromptTemplateFactory Class
- java.
lang. Object - com.
microsoft. semantickernel. semanticfunctions. KernelPromptTemplateFactory
- com.
Implements
public class KernelPromptTemplateFactory
implements PromptTemplateFactory
Factory for creating prompt templates. This factory creates the appropriate prompt template based on the template format.
Constructor Summary
| Constructor | Description |
|---|---|
| KernelPromptTemplateFactory() |
Initializes a new instance of the |
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
KernelPromptTemplateFactory
public KernelPromptTemplateFactory()
Initializes a new instance of the KernelPromptTemplateFactory class.
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: