getStateHistory
method. You can then resume execution at this previous point in time.
replay
the full state history to see everything that occurred.
toReplay
state, which is after a specific node in one of the graph invocations. Resuming from this point will call the next scheduled node.
Resume from the toReplay
state, which is after the chatbot
node in one of the graph invocations. Resuming from this point will call the next scheduled node.
toReplay.config
contains a checkpoint_id
timestamp. Providing this checkpoint_id
value tells LangGraph’s checkpointer to load the state from that moment in time.
tools
node. You can tell this is the case since the first value printed above is the response from our search engine tool.
Congratulations! You’ve now used time-travel checkpoint traversal in LangGraph. Being able to rewind and explore alternative paths opens up a world of possibilities for debugging, experimentation, and interactive applications.