resume

fun resume(update: suspend (State) -> State = { it }): Job

Continues the run of the thread from its last checkpoint, as CompiledGraph.streamResume does: after a GraphSnapshot.Interrupted, or after a GraphSnapshot.Stopped to try the failed step again.

Parameters

update

edits the saved state before the run continues, for example to record what the person decided.

Throws

if the config of this session has no checkpointer.