AxFlowSubContext
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/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/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/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/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/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/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/flow/types.ts#L118
Parameters
Parameter | Type |
---|---|
transform | (state : AxFlowState ) => AxFlowState |
Returns
this