Interface PromptTemplate
-
- All Known Implementing Classes:
HandlebarsPromptTemplate
public interface PromptTemplateRepresents a prompt template that can be rendered to a string.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<String>renderAsync(Kernel kernel, KernelFunctionArguments arguments, InvocationContext context)Renders the template using the suppliedKernel,KernelFunctionArguments, andInvocationContext.
-
-
-
Method Detail
-
renderAsync
reactor.core.publisher.Mono<String> renderAsync(Kernel kernel, @Nullable KernelFunctionArguments arguments, @Nullable InvocationContext context)
Renders the template using the suppliedKernel,KernelFunctionArguments, andInvocationContext.- Parameters:
kernel- TheKernelcontaining services, plugins, and other state for use throughout the operation.arguments- The arguments to use to satisfy any input variables in the prompt template.context- TheInvocationContextwhich carries optional information for the prompt rendering.- Returns:
- The rendered prompt.
-
-