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.

Throws

if config has no checkpointer.

if the thread has no checkpoint.

if the thread's last run already completed.