Skip to content

AxProgramWithSignature

Class: AxProgramWithSignature<IN, OUT>

Extended by

Type Parameters

IN extends AxGenIn

OUT extends AxGenOut

Implements

Constructors

new AxProgramWithSignature()

new AxProgramWithSignature<IN, OUT>(signature): AxProgramWithSignature<IN, OUT>

Parameters

signature: Readonly<string | AxSignature>

Returns

AxProgramWithSignature<IN, OUT>

Defined in

src/ax/dsp/program.ts:88

Properties

demos?

protected optional demos: Record<string, AxFieldValue>[]

Defined in

src/ax/dsp/program.ts:81


examples?

protected optional examples: Record<string, AxFieldValue>[]

Defined in

src/ax/dsp/program.ts:80


sigHash

protected sigHash: string

Defined in

src/ax/dsp/program.ts:78


signature

protected signature: AxSignature

Defined in

src/ax/dsp/program.ts:77


trace?

protected optional trace: Record<string, AxFieldValue>

Defined in

src/ax/dsp/program.ts:82


usage

protected usage: AxTokenUsage & object[] = []

Defined in

src/ax/dsp/program.ts:83

Methods

forward()

forward(_arg0, _options?): Promise<OUT>

Parameters

_arg0: IN

_options?: Readonly<AxProgramForwardOptions>

Returns

Promise<OUT>

Defined in

src/ax/dsp/program.ts:106


getSignature()

getSignature(): AxSignature

Returns

AxSignature

Defined in

src/ax/dsp/program.ts:95


getTraces()

getTraces(): AxProgramTrace[]

Returns

AxProgramTrace[]

Implementation of

AxTunable.getTraces

Defined in

src/ax/dsp/program.ts:169


getUsage()

getUsage(): AxTokenUsage & object[]

Returns

AxTokenUsage & object[]

Implementation of

AxUsable.getUsage

Defined in

src/ax/dsp/program.ts:183


register()

register(prog): void

Parameters

prog: Readonly<AxTunable & AxUsable>

Returns

void

Defined in

src/ax/dsp/program.ts:99


resetUsage()

resetUsage(): void

Returns

void

Implementation of

AxUsable.resetUsage

Defined in

src/ax/dsp/program.ts:193


setDemos()

setDemos(demos): void

Parameters

demos: readonly AxProgramDemos[]

Returns

void

Implementation of

AxTunable.setDemos

Defined in

src/ax/dsp/program.ts:200


setExamples()

setExamples(examples): void

Parameters

examples: Readonly<AxProgramExamples>

Returns

void

Implementation of

AxTunable.setExamples

Defined in

src/ax/dsp/program.ts:128


setId()

setId(id): void

Parameters

id: string

Returns

void

Implementation of

AxTunable.setId

Defined in

src/ax/dsp/program.ts:115


setParentId()

setParentId(parentId): void

Parameters

parentId: string

Returns

void

Implementation of

AxTunable.setParentId

Defined in

src/ax/dsp/program.ts:122