Skip to content

Interface: InterruptNode<TPayload> ​

Defined in: ast/interrupt-node.ts:11

Passive AST node representing a synchronous upward interrupt raised by an actor or policy guard.

Raising an interrupt halts the active step or tool batch and transfers control to the nearest enclosing .onInterrupt() or .onChildInterrupt() edge.

Type Parameters ​

Type ParameterDefault typeDescription
TPayloadunknownValidated output type of the interrupt payload schema.

Properties ​

PropertyModifierTypeDescriptionDefined in
idreadonlystringUnique logical identifier of the interrupt.ast/interrupt-node.ts:15
schemareadonlyZodType<TPayload>Zod schema used to validate payloads raised with this interrupt.ast/interrupt-node.ts:17
typereadonly"harness:interrupt"Discriminant identifying a core interrupt definition node.ast/interrupt-node.ts:13

Released under the MIT License.