invoke
or stream
methods.getStateHistory()
method to retrieve the execution history for a specific thread_id
and locate the desired checkpoint_id
.updateState
method to modify the graph’s state at the checkpoint and resume execution from alternative state.invoke
or stream
methods with an input of null
and a configuration containing the appropriate thread_id
and checkpoint_id
.updateState
will create a new checkpoint. The new checkpoint will be associated with the same thread, but a new checkpoint ID.