porlangchain-ai·langchain-ai· v1.0.0 · atualizado em 2026-04-10
80
Score
INVOKE THIS SKILL when your LangGraph needs to persist state, remember conversations, travel through history, or configure subgraph checkpointer scoping. Covers checkpointers, thread_id, time travel, Store, and subgraph persistence modes.
Choose a Checkpointer — : Select an appropriate checkpointer (InMemorySaver, SqliteSaver, PostgresSaver) based on the environment and persistence needs.
2
Configure Thread IDs — : Assign unique thread IDs to isolate state between different conversations or users.
3
Implement State Management — : Use the checkpointer to save and load graph state at each super-step.
4
Access Long-Term Memory (Store) — : If needed, configure and access the store for cross-thread user preferences or facts.
5
Update State — : Use `update_state` to modify the graph state before resuming execution.
6
Compile Graph — : Compile the LangGraph with the chosen checkpointer and configurations.
persist state in LangGraphsave conversation historyimplement time travel in LangGraphconfigure subgraph checkpointer scopinguse LangGraph checkpointersaccess long-term memory in LangGraphmanage thread state in LangGraphresume LangGraph from a checkpoint