Choose a step type
Validate input and read upstream results
This local handler reads the actual output of draft. Connect your publishing interface after validating its input.parseInput receives current input, upstream outputs for this activation, and optional activation input. Here outputs.draft is the business value; when inspecting a Run, the value is at run.outputs.draft.value.
The second execute argument provides the original Action and host context. Save external service receipts and associate them with that Action for recovery. TypeScript infers one handler’s input; JSON across steps still needs validation.
Register and advance
Pass the executor tocreateRuntime through executors: [host], then call:
maxActions limits attempted actions in this invocation, not the duration of an individual model or tool call. Implement timeouts, cancellation, and model budgets in the host. For executor-required, check ref, type, and supported capabilities.
Report success, failure, and unknown results
A handler may throw after an external operation happened, so Runtime treats exceptions conservatively. Do not repeat publishing, payment, or messaging to test whether an earlier attempt succeeded. See unknown-result recovery.
Provide model and tool credentials through a host closure or current environment, never Workflow, Run, output, or proposal data.

