Skip to content

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 ParameterDefault typeDescription
TInunknownValidated step input payload type.
TOutunknownValidated step output payload type.
THandleunknownRuntime handle type of the active isolation scope.

Parameters ​

ParameterTypeDescription
nodeStepASTNode<TIn, TOut, THandle>Passive step AST node to execute.
inputTInRaw or pre-mapped step input payload.
ctxStepExecutionContext<THandle>Active step execution context.

Returns ​

Promise<TOut>

Schema-validated output payload produced by the step executor.

Released under the MIT License.