Tag: checkpointer
All the articles with the tag "checkpointer".
-
LangGraph 时光旅行:回溯状态、断点重跑与分支分叉
持久化 Checkpointer 不只是为了关了进程再续。通过 get_state_history 倒序遍历快照链条,传入历史 checkpoint_id 触发断点重跑,或者用 update_state 篡改状态并指定 as_node 派生新分支。结合订房业务,拆透时光旅行的执行语义、幂等防线与工程陷阱。