Interrupts
NotEnoughStepsInterruptData
Bases: BaseModel
additional_info
instance-attribute
current_node
instance-attribute
steps_remaining
instance-attribute
steps_required
instance-attribute
check_enough_steps_remaining_interrupt(node_name, steps_remaining, steps_required=1, additional_info=None)
Checks if there are enough steps remaining, and if not handles raising an interrupt.
Note: Can't use langgraph.types.interrupt(...) because we only want to interrupt if there are not enough steps,
and on resuming, we won't check this again... That would leave any other interrupts out of sync.