Expand description
Human-in-the-Loop (HITL) support
This module provides interrupt mechanisms for pausing graph execution to await human input before continuing.
Structs§
- Interrupt
Context - Interrupt context for managing human-in-the-flow interactions
- Interrupt
Record - Record of an interrupt event for audit trail purposes
- Interrupt
Signal - Signal sent when a node requests interruption
- Scratchpad
- Scratchpad for interrupt handling and transient data storage
Enums§
- Resume
Value - Value provided when resuming from an interrupt
Constants§
- HIDDEN_
TAG - Tag used to mark interrupt signals that should be hidden from external consumers
Statics§
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