langgraph-persistence

仓库创建 2026年1月22日最近提交 7 小时前SkillHot 收录 1 小时前
▸ 精选理由

适合需要会话恢复、时间旅行和长期状态管理的代理项目

▸ 风险提示

需配置外部存储与凭据,注意权限与数据泄露风险

这个 Skill 做什么

为 LangGraph 提供检查点、线程 ID 与跨线程存储的持久化能力。

当 LangGraph 需要记住会话、跨线程存储或回溯历史时用,它提供持久化层来把图状态存盘和恢复。包含 checkpointer(按超步保存/加载)、thread_id(区分不同对话线)和跨线程的 Store(长期记忆/用户偏好)。短期用检查点保存会话进度,长期用 Store 保存可跨会话的数据,能做时间旅行、回放或子图级别的持久化配置。

▸ 展开 SKILL.md 英文原文

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.

开发编程持久化检查点历史回溯通用
1.1k
Stars
85
Forks
22
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/langchain-ai/langchain-skills/main/config/skills/langgraph-persistence/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/langchain-ai/langchain-skills/main/config/skills/langgraph-persistence/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
<overview>
LangGraph's persistence layer enables durable execution by checkpointing graph state:

- **Checkpointer**: Saves/loads graph state at every super-step
- **Thread ID**: Identifies separate checkpoint sequences (conversations)
- **Store**: Cross-thread memory for user preferences, facts

**Two memory types:**
- **Short-term** (checkpointer): Thread-scoped conversation history
- **Long-term** (store): Cross-thread user preferences, facts
</overview>

<checkpointer-selection>

| Checkpointer | Use Case | Production Ready |
|--------------|----------|------------------|
| `InMemorySaver` | Testing, development | No |
| `SqliteSaver` | Local development | Partial |
| `PostgresSaver` | P
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有