Interface: FlowBranchNode<TFlowIn, TBranchOut, THandle, TBranchId>
Defined in: ast/flow-branch-node.ts:34
Passive AST node representing a conditional multi-way branch inside a FlowNode (.branch(id, $b => ...)).
All branch cases and the fallback otherwiseSteps produce outputs validated against outputSchema and recorded in completedStepOutputsJson under the outer id: TBranchId.
Type Parameters
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
cases | readonly | readonly FlowBranchCase<TFlowIn, THandle>[] | Ordered list of conditional when branch cases evaluated in declaration order. | ast/flow-branch-node.ts:47 |
id | readonly | TBranchId | Unique literal identifier of the branch node within the enclosing flow. | ast/flow-branch-node.ts:43 |
otherwiseSteps | readonly | readonly ( | FlowStepNode<unknown, unknown, THandle, string> | FlowBranchNode<unknown, unknown, THandle, string>)[] | Fallback steps executed when no cases predicate matches. | ast/flow-branch-node.ts:49 |
outputSchema | readonly | ZodType<TBranchOut> | Zod schema validating the output of whichever branch case executes. | ast/flow-branch-node.ts:45 |
type | readonly | "harness:flow-branch" | Discriminant identifying a flow branch AST node. | ast/flow-branch-node.ts:41 |