Skip to content

Template

Defined in: packages/core/src/template/types.ts:15

Branded prompt template: Zod-validated input, then Handlebars, then string.

Usable from agent instructions, workflow turns, or tests — not tied to WorkflowContext. Pass render data explicitly (no ctx.render).

When created from a file path, name is the filename basename without extension (e.g. ./prompts/find-papers.md"find-papers"). Create via adl.createTemplate and list in adl.config templates[].

createTemplate

TInput

readonly optional demo?: TInput

Defined in: packages/core/src/template/types.ts:19


readonly name: string

Defined in: packages/core/src/template/types.ts:16


readonly optional path?: string

Defined in: packages/core/src/template/types.ts:17


readonly source: string

Defined in: packages/core/src/template/types.ts:18

render(inputData): string

Defined in: packages/core/src/template/types.ts:20

TInput

string