Unlike Python's FunctionNode (which binds named parameters from ctx.state
or node_input via runtime signature introspection), the TypeScript form
uses the idiomatic explicit (ctx, input) signature. Read ctx.state
directly for state-bound values. It may return a value/Event, a Promise, or
a (sync/async) generator of those.
The handler wrapped by a FunctionNode.
Unlike Python's
FunctionNode(which binds named parameters fromctx.stateornode_inputvia runtime signature introspection), the TypeScript form uses the idiomatic explicit(ctx, input)signature. Readctx.statedirectly for state-bound values. It may return a value/Event, a Promise, or a (sync/async) generator of those.