Skip to content

AxPromptTemplate

Class: AxPromptTemplate

Constructors

new AxPromptTemplate()

new AxPromptTemplate(sig, fieldTemplates?): AxPromptTemplate

Parameters

sig: Readonly<AxSignature>

fieldTemplates?: Record<string, AxFieldTemplateFn>

Returns

AxPromptTemplate

Defined in

src/ax/dsp/prompt.ts:27

Methods

render()

render<T>(values, __namedParameters): Readonly<object | object | object | object>[]

Type Parameters

T extends Record<string, AxFieldValue>

Parameters

values: T

__namedParameters: Readonly<object>

Returns

Readonly<object | object | object | object>[]

Defined in

src/ax/dsp/prompt.ts:58


renderExtraFields()

renderExtraFields(extraFields): string | (object | object)[]

Parameters

extraFields: readonly AxIField[]

Returns

string | (object | object)[]

Defined in

src/ax/dsp/prompt.ts:106