Command(resume=...)
, injecting the human’s input and continuing execution.Extended example: using `interrupt`
interrupt(...)
pauses execution at human_node
, surfacing the given payload to a human.interrupt
function. Here, a dict containing the text to revise.interrupt(...)
is the human-provided input, which is used to update the state.Command(resume=...)
, injecting the human’s input and continuing execution.interrupt_before
and interrupt_after
at compile time:
compile
time.interrupt_before
specifies the nodes where execution should pause before the node is executed.interrupt_after
specifies the nodes where execution should pause after the node is executed.client.runs.wait
is called with the interrupt_before
and interrupt_after
parameters. This is a run-time configuration and can be changed for every invocation.interrupt_before
specifies the nodes where execution should pause before the node is executed.interrupt_after
specifies the nodes where execution should pause after the node is executed.None
for the input. This will run the graph until the next breakpoint is hit.