AxFlowable
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/flow/types.ts#L65
Interface for flows that can be tuned, executed, and used in compositions. Provides methods for building and executing complex AI workflows.
Extends
AxProgrammable<IN,OUT>
Type Parameters
| Type Parameter |
|---|
IN |
OUT |
Properties
| Property | Type | Inherited from |
|---|---|---|
applyOptimization | (optimizedProgram: AxOptimizedProgram<OUT>) => void | AxProgrammable.applyOptimization |
getSignature | () => AxSignature | AxProgrammable.getSignature |
getTraces | () => AxProgramTrace<IN, OUT>[] | AxProgrammable.getTraces |
getUsage | () => AxModelUsage & object[] | AxProgrammable.getUsage |
resetUsage | () => void | AxProgrammable.resetUsage |
setDemos | (demos: readonly AxProgramDemos<IN, OUT>[]) => void | AxProgrammable.setDemos |
setExamples | (examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>) => void | AxProgrammable.setExamples |
setId | (id: string) => void | AxProgrammable.setId |
setParentId | (parentId: string) => void | AxProgrammable.setParentId |
Methods
forward()
forward(
ai: Readonly<AxAIService>,
values: IN | AxMessage<IN>[],
options?: Readonly<AxProgramForwardOptions<string>>): Promise<OUT>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/types.ts#L196
Parameters
| Parameter | Type |
|---|---|
ai | Readonly<AxAIService> |
values | IN | AxMessage<IN>[] |
options? | Readonly<AxProgramForwardOptions<string>> |
Returns
Promise<OUT>
Inherited from
streamingForward()
streamingForward(
ai: Readonly<AxAIService>,
values: IN | AxMessage<IN>[],
options?: Readonly<AxProgramStreamingForwardOptions<string>>): AxGenStreamingOut<OUT>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/types.ts#L202
Parameters
| Parameter | Type |
|---|---|
ai | Readonly<AxAIService> |
values | IN | AxMessage<IN>[] |
options? | Readonly<AxProgramStreamingForwardOptions<string>> |
Returns
AxGenStreamingOut<OUT>