You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/src/factories/args-def-factory.ts
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -83,10 +83,11 @@ Workflow step definitions - provide ONLY on initial call.
83
83
enum: [true],
84
84
}),
85
85
86
-
proceed: (): JSONSchema=>({
87
-
type: "boolean",
86
+
decision: (): JSONSchema=>({
87
+
type: "string",
88
+
enum: ["retry","proceed","complete"],
88
89
description:
89
-
"**Step execution control. Set \`true\` to advance, \`false\`/omit to retry. For failed steps, MUST use \`false\`**",
90
+
"**Step execution control. Use \`proceed\` to advance to next step, \`retry\` to re-execute current step, or \`complete\` to finish workflow (only allowed at final step). For failed steps, MUST use \`retry\`**",
90
91
}),
91
92
92
93
action: (sampling?: boolean): JSONSchema=>({
@@ -115,10 +116,10 @@ Workflow step definitions - provide ONLY on initial call.
115
116
...pick(depGroups,currentStep.actions),
116
117
}asRecord<string,JSONSchema>;
117
118
118
-
stepDependencies["proceed"]=this.proceed();
119
+
stepDependencies["decision"]=this.decision();
119
120
stepDependencies["action"]=this.action();
120
121
121
-
// Make proceed required when workflow is in progress and needs user decision
122
+
// Make decision required when workflow is in progress and needs user decision
122
123
returnthis.common(stepDependencies);
123
124
},
124
125
@@ -218,10 +219,10 @@ Workflow step definitions - provide ONLY on initial call.
218
219
...pick(depGroups,nextStep.actions),
219
220
}asRecord<string,JSONSchema>;
220
221
221
-
stepDependencies["proceed"]=this.proceed();
222
+
stepDependencies["decision"]=this.decision();
222
223
stepDependencies["action"]=this.action();
223
224
224
-
// Make proceed required for next state transitions
225
+
// Make decision required for next state transitions
0 commit comments