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 Parameter | Default type | Description |
|---|---|---|
TPayload | unknown | Interrupt payload type. |
TDecision | unknown | Validated human decision response type. |
Properties
| Property | Modifier | Type | Description | Overrides | Defined in |
|---|---|---|---|---|---|
elevateLeaseWhen? | readonly | AskLeaseElevationConfig<TDecision> | Optional lease elevation rule applied to the outer interrupted actor when the human approves a lease. | - | ast/ask-interrupt-handler-node.ts:42 |
human | readonly | HumanNode<"bidirectional"> | Bidirectional human authority paged to resolve the interrupt. | - | ast/ask-interrupt-handler-node.ts:38 |
interrupt | readonly | InterruptNode<TPayload> | Target InterruptNode intercepted by this handler. | - | ast/ask-interrupt-handler-node.ts:36 |
mode | readonly | "ask" | Human decision handler mode. | - | ast/ask-interrupt-handler-node.ts:34 |
responseSchema | readonly | ZodType<TDecision> | Zod schema validating the human's decision response. | - | ast/ask-interrupt-handler-node.ts:40 |
resumeWith | readonly | BivariantCallback<[decision: TDecision], string> | Synchronous formatter producing the feedback string returned to the interrupted actor or adjudicator. | - | ast/ask-interrupt-handler-node.ts:44 |
type | readonly | "harness:interrupt-handler" | Discriminant identifying an interrupt handler AST node. | ASTNode.type | ast/ask-interrupt-handler-node.ts:32 |