HandlebarsPromptTemplate Class
- java.
lang. Object - com.
microsoft. semantickernel. templateengine. handlebars. HandlebarsPromptTemplate
- com.
Implements
public class HandlebarsPromptTemplate
implements PromptTemplate
A prompt template that uses the Handlebars template engine to render prompts.
Constructor Summary
| Constructor | Description |
|---|---|
| HandlebarsPromptTemplate(PromptTemplateConfig promptTemplate) |
Initializes a new instance of the HandlebarsPromptTemplate class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| reactor.core.publisher.Mono<java.lang.String> |
renderAsync(Kernel kernel, KernelFunctionArguments arguments, InvocationContext context)
Renders the template using the supplied |
Methods inherited from java.lang.Object
Constructor Details
HandlebarsPromptTemplate
public HandlebarsPromptTemplate(PromptTemplateConfig promptTemplate)
Initializes a new instance of the HandlebarsPromptTemplate class.
Parameters:
Method Details
renderAsync
public Mono
Renders the template using the supplied Kernel, KernelFunctionArguments, and InvocationContext.
Parameters: