Skip to content

renderPromptTemplate

renderPromptTemplate(engine, template, context): string

Defined in: packages/core/src/prompt/render.ts:10

Renders a prompt template with Handlebars (https://handlebarsjs.com/). Uses noEscape: true so values are not HTML-escaped (plain-text prompts).

Prefer AdlRuntime.createTemplate for project templates; use this for ad-hoc rendering with a runtime-owned TemplateEngine.

TemplateEngine

string

object

string