Language

HandlebarsPromptTemplateFactory Class

Definition

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

Name Description
HandlebarsPromptTemplateFactory(HandlebarsPromptTemplateOptions)

Initializes a new instance of the HandlebarsPromptTemplateFactory class.

Properties

Name Description
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

Name Description
TryCreate(PromptTemplateConfig, IPromptTemplate)

Creates an instance of IPromptTemplate from a PromptTemplateConfig.

Extension Methods

Name Description
Create(IPromptTemplateFactory, PromptTemplateConfig)

Creates an instance of IPromptTemplate from a PromptTemplateConfig.

Applies to