AxForwardable
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/types.ts#L183
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/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/types.ts#L184
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/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/types.ts#L190
Parameters
Parameter | Type |
---|---|
ai | Readonly <AxAIService > |
values | IN | AxMessage <IN >[] |
options? | Readonly <AxProgramStreamingForwardOptions <TModelKey >> |
Returns
AxGenStreamingOut
<OUT
>