resume
suspend fun resume(config: GraphConfig<State>, update: suspend (State) -> State = { it }): GraphResult<State>
Continues the run of GraphConfig.threadId from its last checkpoint, typically after an interrupt and a human decision.
Parameters
update
edits the checkpointed state before execution continues, for example to record an approval. Defaults to continuing with the state unchanged. A state that update changed is saved before anything runs, in place of the checkpoint it was made from, so that a step that fails or is cancelled does not lose it: a resume without an update then continues with it.
Throws
if config has no checkpointer.
if the thread has no checkpoint.
if the thread's last run already completed.