Skip to content

AxProgram

Class: AxProgram<IN, OUT>

Type Parameters

IN extends AxGenIn

OUT extends AxGenOut

Implements

Constructors

new AxProgram()

new AxProgram<IN, OUT>(): AxProgram<IN, OUT>

Returns

AxProgram<IN, OUT>

Defined in

src/ax/dsp/program.ts:237

Properties

trace?

protected optional trace: Record<string, AxFieldValue>

Defined in

src/ax/dsp/program.ts:231


usage

protected usage: AxTokenUsage & object[] = []

Defined in

src/ax/dsp/program.ts:232

Methods

forward()

forward(_ai, _values, _options?): Promise<OUT>

Parameters

_ai: Readonly<AxAIService>

_values: IN

_options?: Readonly<AxProgramForwardOptions>

Returns

Promise<OUT>

Defined in

src/ax/dsp/program.ts:249


getTraces()

getTraces(): AxProgramTrace[]

Returns

AxProgramTrace[]

Implementation of

AxTunable.getTraces

Defined in

src/ax/dsp/program.ts:283


getUsage()

getUsage(): AxTokenUsage & object[]

Returns

AxTokenUsage & object[]

Implementation of

AxUsable.getUsage

Defined in

src/ax/dsp/program.ts:297


register()

register(prog): void

Parameters

prog: Readonly<AxTunable & AxUsable>

Returns

void

Defined in

src/ax/dsp/program.ts:242


resetUsage()

resetUsage(): void

Returns

void

Implementation of

AxUsable.resetUsage

Defined in

src/ax/dsp/program.ts:307


setDemos()

setDemos(demos): void

Parameters

demos: readonly AxProgramDemos[]

Returns

void

Implementation of

AxTunable.setDemos

Defined in

src/ax/dsp/program.ts:314


setExamples()

setExamples(examples): void

Parameters

examples: Readonly<AxProgramExamples>

Returns

void

Implementation of

AxTunable.setExamples

Defined in

src/ax/dsp/program.ts:273


setId()

setId(id): void

Parameters

id: string

Returns

void

Implementation of

AxTunable.setId

Defined in

src/ax/dsp/program.ts:260


setParentId()

setParentId(parentId): void

Parameters

parentId: string

Returns

void

Implementation of

AxTunable.setParentId

Defined in

src/ax/dsp/program.ts:267