AxFlowSubContext
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/flow/types.ts#L112
Methods
execute()
execute<TAI>(
nodeName: string,
mapping: (state: AxFlowState) => Record<string, AxFieldValue>,
dynamicContext?: AxFlowDynamicContext<TAI>): this;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/flow/types.ts#L113
Type Parameters
| Type Parameter |
|---|
TAI extends Readonly<AxAIService<unknown, unknown, string>> |
Parameters
| Parameter | Type |
|---|---|
nodeName | string |
mapping | (state: AxFlowState) => Record<string, AxFieldValue> |
dynamicContext? | AxFlowDynamicContext<TAI> |
Returns
this
executeSteps()
executeSteps<TAI>(initialState: AxFlowState, context: Readonly<{
mainAi: TAI;
mainOptions?: AxProgramForwardOptions<NonNullable<ReturnType<TAI["getModelList"]>>[number]["key"]>;
}>): Promise<AxFlowState>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/flow/types.ts#L119
Type Parameters
| Type Parameter |
|---|
TAI extends Readonly<AxAIService<unknown, unknown, string>> |
Parameters
| Parameter | Type |
|---|---|
initialState | AxFlowState |
context | Readonly<{ mainAi: TAI; mainOptions?: AxProgramForwardOptions<NonNullable<ReturnType<TAI["getModelList"]>>[number]["key"]>; }> |
Returns
Promise<AxFlowState>
map()
map(transform: (state: AxFlowState) => AxFlowState): this;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/flow/types.ts#L118
Parameters
| Parameter | Type |
|---|---|
transform | (state: AxFlowState) => AxFlowState |
Returns
this