AxFlowable
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/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 |
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
AxProgrammable.applyOptimization
forward()
forward(
ai: Readonly<AxAIService>,
values: IN | AxMessage<IN>[],
options?: Readonly<AxProgramForwardOptions<string>>): 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<string>> |
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
Inherited from
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<string>>): 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<string>> |
Returns
AxGenStreamingOut<OUT>