Skip to content

Interface: AskInterruptHandlerNode<TPayload, TDecision> ​

Defined in: ast/ask-interrupt-handler-node.ts:30

Interrupt handler variant (mode: 'ask') that pages a bidirectional HumanNode and resumes the interrupted actor.

Suspends the active actor or adjudicator until the human authority submits a response matching responseSchema.

Extends ​

Type Parameters ​

Type ParameterDefault typeDescription
TPayloadunknownInterrupt payload type.
TDecisionunknownValidated human decision response type.

Properties ​

PropertyModifierTypeDescriptionOverridesDefined in
elevateLeaseWhen?readonlyAskLeaseElevationConfig<TDecision>Optional lease elevation rule applied to the outer interrupted actor when the human approves a lease.-ast/ask-interrupt-handler-node.ts:42
humanreadonlyHumanNode<"bidirectional">Bidirectional human authority paged to resolve the interrupt.-ast/ask-interrupt-handler-node.ts:38
interruptreadonlyInterruptNode<TPayload>Target InterruptNode intercepted by this handler.-ast/ask-interrupt-handler-node.ts:36
modereadonly"ask"Human decision handler mode.-ast/ask-interrupt-handler-node.ts:34
responseSchemareadonlyZodType<TDecision>Zod schema validating the human's decision response.-ast/ask-interrupt-handler-node.ts:40
resumeWithreadonlyBivariantCallback<[decision: TDecision], string>Synchronous formatter producing the feedback string returned to the interrupted actor or adjudicator.-ast/ask-interrupt-handler-node.ts:44
typereadonly"harness:interrupt-handler"Discriminant identifying an interrupt handler AST node.ASTNode.typeast/ask-interrupt-handler-node.ts:32

Released under the MIT License.