HandlebarsPromptTemplateFactory 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 an IPromptTemplateFactory for the handlebars prompt template format.
public sealed class HandlebarsPromptTemplateFactory : Microsoft.SemanticKernel.IPromptTemplateFactory
type HandlebarsPromptTemplateFactory = class
interface IPromptTemplateFactory
Public NotInheritable Class HandlebarsPromptTemplateFactory
Implements IPromptTemplateFactory
- Inheritance
-
HandlebarsPromptTemplateFactory
- Implements
Constructors
| HandlebarsPromptTemplateFactory(HandlebarsPromptTemplateOptions) |
Initializes a new instance of the HandlebarsPromptTemplateFactory class. |
Properties
| AllowDangerouslySetContent |
Gets or sets a value indicating whether to allow potentially dangerous content to be inserted into the prompt. |
| HandlebarsTemplateFormat |
Gets the name of the Handlebars template format. |
| NameDelimiter |
The character used to delimit plugin, function, or variable names in a Handlebars template. |
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. |