history
Returns the checkpoints of the run of GraphConfig.threadId, oldest first: the one that was saved when the run started, and one for each step that finished since. The last one is where the thread stands now. Empty when the thread has no checkpoint.
val history = graph.history(config)
history.forEach { println("after step ${it.step}: ${it.state}, next ${it.nextNodes}") }Content copied to clipboard
A run that paused has the state it paused with in the checkpoint of its last step. invoke starts the history of a thread again. How far back the history goes is up to the Checkpointer: one that keeps only the latest checkpoint returns that one.
Throws
if config has no checkpointer.