AxProgrammable
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L310
Extends
AxForwardable<IN,OUT,TModelKey>.AxTunable<IN,OUT>.AxUsable
Extended by
Type Parameters
| Type Parameter | Default type |
|---|---|
IN | - |
OUT | - |
TModelKey | string |
Methods
applyOptimization()
applyOptimization(optimizedProgram: AxOptimizedProgram<OUT>): void;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L302
Parameters
| Parameter | Type |
|---|---|
optimizedProgram | AxOptimizedProgram<OUT> |
Returns
void
Inherited from
forward()
forward(
ai: Readonly<AxAIService>,
values: IN | AxMessage<IN>[],
options?: Readonly<AxProgramForwardOptions<TModelKey>>): Promise<OUT>;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L281
Parameters
| Parameter | Type |
|---|---|
ai | Readonly<AxAIService> |
values | IN | AxMessage<IN>[] |
options? | Readonly<AxProgramForwardOptions<TModelKey>> |
Returns
Promise<OUT>
Inherited from
getId()
getId(): string;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L295
Returns
string
Inherited from
getSignature()
getSignature(): AxSignature;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L314
Returns
getTraces()
getTraces(): AxProgramTrace<IN, OUT>[];
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L297
Returns
AxProgramTrace<IN, OUT>[]
Inherited from
getUsage()
getUsage(): AxModelUsage & object[];
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L306
Returns
AxModelUsage & object[]
Inherited from
resetUsage()
resetUsage(): void;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L307
Returns
void
Inherited from
setDemos()
setDemos(demos: readonly AxProgramDemos<IN, OUT, string>[], options?: object): void;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L298
Parameters
| Parameter | Type |
|---|---|
demos | readonly AxProgramDemos<IN, OUT, string>[] |
options? | { modelConfig?: Record<string, unknown>; } |
options.modelConfig? | Record<string, unknown> |
Returns
void
Inherited from
setId()
setId(id: string): void;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L296
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
void
Inherited from
streamingForward()
streamingForward(
ai: Readonly<AxAIService>,
values: IN | AxMessage<IN>[],
options?: Readonly<AxProgramStreamingForwardOptions<TModelKey>>): AxGenStreamingOut<OUT>;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L287
Parameters
| Parameter | Type |
|---|---|
ai | Readonly<AxAIService> |
values | IN | AxMessage<IN>[] |
options? | Readonly<AxProgramStreamingForwardOptions<TModelKey>> |
Returns
AxGenStreamingOut<OUT>