How it works
- Gate it with
when,inferordecide. See Conditions and bodies. With no gate, it always exits. status: successends the plan with exit code 0.status: errorends it with exit code 4.messageexplains the exit.- In an output plan, a success exit’s
outputreturns exactly thefinish.outputkeys. Error exits, and exits in solver or silent plans, take nooutput. - An exit inside a
route,maporreducebody ends the whole plan.
When to use it
- Stop with success when there’s nothing to do, such as an empty search.
- Stop with an error to fail a check, such as in CI.
Input
object
A yes/no question answered by a decision model (only when one is configured); fires when its probability reaches min_confidence.
object
string
string
number
0 to 1; default 0.5
string
A decision model role; defaults to decider
string
required
any
The data to judge, usually a template like {{E2.text}}
string
A yes/no question about prior results; exits when the answer is yes.
string
Shown as the plan’s answer / error message. May use templates.
string
Model role for the
infer verdict (any configured role, standard or custom); defaults to the judge role.enum<string>
required
Available options:
success, errorobject
enum<string>
required
Available options:
eq, ne, gt, lt, gte, lte, empty, not_empty, containsany
Comparison operand (omit for empty/not_empty)
any
required
Usually a template like {{E0.issues.length}}
Result
Later steps read these as{{<step id>.<field>}}.
boolean
Always true. The plan only reaches later steps when the exit didn’t fire.
string
Why the gate decided as it did, for
infer and decide gates.boolean
Whether the condition held. Always false when later steps can read it.