AxForwardable
Defined in: https://github.com/ax-llm/ax/blob/b50783a160295ce34ac10dcaf3bd8fff4a01d535/src/ax/dsp/types.ts#L196
Extended by
Type Parameters
| Type Parameter |
|---|
IN |
OUT |
TModelKey |
Methods
forward()
forward(
ai: Readonly<AxAIService>,
values: IN | AxMessage<IN>[],
options?: Readonly<AxProgramForwardOptions<TModelKey>>): Promise<OUT>;
Defined in: https://github.com/ax-llm/ax/blob/b50783a160295ce34ac10dcaf3bd8fff4a01d535/src/ax/dsp/types.ts#L197
Parameters
| Parameter | Type |
|---|---|
ai | Readonly<AxAIService> |
values | IN | AxMessage<IN>[] |
options? | Readonly<AxProgramForwardOptions<TModelKey>> |
Returns
Promise<OUT>
streamingForward()
streamingForward(
ai: Readonly<AxAIService>,
values: IN | AxMessage<IN>[],
options?: Readonly<AxProgramStreamingForwardOptions<TModelKey>>): AxGenStreamingOut<OUT>;
Defined in: https://github.com/ax-llm/ax/blob/b50783a160295ce34ac10dcaf3bd8fff4a01d535/src/ax/dsp/types.ts#L203
Parameters
| Parameter | Type |
|---|---|
ai | Readonly<AxAIService> |
values | IN | AxMessage<IN>[] |
options? | Readonly<AxProgramStreamingForwardOptions<TModelKey>> |
Returns
AxGenStreamingOut<OUT>