Time Travel
-
Lets see how langgrpah supports debugging by viewing, replaying and even forking past states
-
To browse history we can use
graph.get_stateon the graphs side to fetch the information and we can also browse the state history of our agent usingget_state_history - If you want to run the grap from a particular checkpoint with out changing any state, this is considered replay and to do replay
graph.stream(input=None, config=to_replay.config, stream_mode="values") - If we want to run from a step but with a different input, this is called as forking
-
Refer Here for the jupyter notebook to perform time travel by using langgraph
-
Time travel from graph API/SDK Refer Here
