@parcha/agentrun-dsl 0.1.0-beta.36 → 0.1.0-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/workflow.js +5 -0
- package/package.json +1 -1
package/dist/workflow.js
CHANGED
|
@@ -3300,6 +3300,11 @@ function checkDecisionProviders(node, deps, workflow) {
|
|
|
3300
3300
|
asked.push({ choice: node, types: ["choice"], count: 1, what: `pick node "${label}"` });
|
|
3301
3301
|
if (node.node === "route" && !routesByValue(node))
|
|
3302
3302
|
asked.push({ choice: node, types: ["choice"], count: 1, what: `route node "${label}"` });
|
|
3303
|
+
// A node's `verify` is asked of the host's default decision provider (no provider of its own): a host without it refuses the node.
|
|
3304
|
+
if ("verify" in node && node.verify) {
|
|
3305
|
+
const types = questionsOf(node.verify.out);
|
|
3306
|
+
asked.push({ choice: {}, types, count: types.length, what: `${node.node} node "${label}" (verify)` });
|
|
3307
|
+
}
|
|
3303
3308
|
for (const pred of [node.node === "loop" ? node.until : undefined, node.node === "escalate" ? node.when : undefined]) {
|
|
3304
3309
|
if (pred?.predicate === "ask")
|
|
3305
3310
|
asked.push({ choice: pred, types: ["noul"], count: 1, what: `${node.node} node "${label}" (ask predicate)` });
|