Function: executeStepNode()
ts
function executeStepNode<TIn, TOut, THandle>(
node,
input,
ctx
): Promise<TOut>;Defined in: runtime/step/execute-step-node.ts:24
Dispatches any passive StepASTNode (AgentNode, LoopNode, CommandNode, or adapter DomainStepASTNode) to its runtime executor (SPEC.md §2.3).
Built-in step variants narrow at compile time via switch (node.type), whereas adapter-supplied domain step nodes dispatch through ctx.registry.steps[node.type] with zero unsafe type casts.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Validated step input payload type. |
TOut | unknown | Validated step output payload type. |
THandle | unknown | Runtime handle type of the active isolation scope. |
Parameters
| Parameter | Type | Description |
|---|---|---|
node | StepASTNode<TIn, TOut, THandle> | Passive step AST node to execute. |
input | TIn | Raw or pre-mapped step input payload. |
ctx | StepExecutionContext<THandle> | Active step execution context. |
Returns
Promise<TOut>
Schema-validated output payload produced by the step executor.