Skip to main content

Module interrupt

Module interrupt 

Source
Expand description

Human-in-the-Loop (HITL) support

This module provides interrupt mechanisms for pausing graph execution to await human input before continuing.

Structs§

InterruptContext
Interrupt context for managing human-in-the-flow interactions
InterruptRecord
Record of an interrupt event for audit trail purposes
InterruptSignal
Signal sent when a node requests interruption
Scratchpad
Scratchpad for interrupt handling and transient data storage

Enums§

ResumeValue
Value provided when resuming from an interrupt

Constants§

HIDDEN_TAG
Tag used to mark interrupt signals that should be hidden from external consumers

Statics§

INTERRUPT_CONTEXT

Functions§

__interrupt_impl
Internal interrupt implementation
extract_namespace
Extract the namespace from an interrupt ID
generate_interrupt_id
Generate a deterministic interrupt ID from node name and index
is_hidden_node
Check if a node name indicates a hidden (internal) node.
should_interrupt
Check if execution should interrupt based on the current state
validate_resume_coverage
Validate that resume values cover all pending interrupts