Skip to content

buildPromptBundles()

PromptScript API


buildPromptBundles(program, options, target): BuiltPrompts

Defined in: formatters/src/prompt/bundle.ts:297

Build the bundles of every prompt in a resolved program.

Parameters

program

Program

The resolved program

options

FormatOptions | undefined

Format options; provenance supplies the source files of each segment

target

string

Target name, used in diagnostics

Returns

BuiltPrompts

One bundle per prompt, in authored order, or none when the program has no prompts

Throws

when the syntax is below 1.6.0 or an entry or model is invalid