Communityコーディング&開発github.com

langchain-ai/langgraph-persistence

LangGraphで状態を永続化し、会話を記憶し、履歴を遡り、サブグラフのチェックポインタースコープを設定する必要がある場合にこのスキルを呼び出してください。チェックポインター、thread_id、タイムトラベル、Store、サブグラフ永続化モードをカバーします。

langgraph-persistence とは?

このスキルは、LangGraphアプリケーションにおける状態の永続化を扱います。チェックポインターを使用してグラフの実行状態を保存・復元し、`thread_id`による会話スレッドの識別、タイムトラベル機能による過去の状態への移動、Storeを用いた外部からの状態管理、そしてサブグラフごとのチェックポインタースコープ設定をサポートします。これにより、チャットボットやマルチステップワークフローなど、会話の履歴や進行状況を維持する必要があるエージェントの構築が容易になります。主にLangGraphフレームワーク上で動作し、Pythonコード内でチェックポインターの設定や操作を行います。このスキルを活用することで、開発者は複雑な状態管理を意識せずに、堅牢でスケーラブルなAIエージェントを開発できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/langchain-ai/langchain-skills/tree/main/skills/langgraph-persistence

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

langgraph-persistence は何をしますか?

LangGraphで状態を永続化し、会話を記憶し、履歴を遡り、サブグラフのチェックポインタースコープを設定する必要がある場合にこのスキルを呼び出してください。チェックポインター、thread_id、タイムトラベル、Store、サブグラフ永続化モードをカバーします。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

langchain-ai/deep-agents-core

INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format, and configuration options.

langchain-ai/deep-agents-memory

INVOKE THIS SKILL when your Deep Agent needs memory, persistence, or filesystem access. Covers StateBackend (ephemeral), StoreBackend (persistent), FilesystemMiddleware, and CompositeBackend for routing.

langchain-ai/deep-agents-orchestration

INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents. Covers SubAgentMiddleware, TodoList for planning, and HITL interrupts.

langchain-ai/framework-selection

INVOKE THIS SKILL at the START of any LangChain/LangGraph/Deep Agents project, before writing any agent code. Determines which framework layer is right for the task: LangChain, LangGraph, Deep Agents, or a combination. Must be consulted before other agent skills.

langchain-ai/langchain-dependencies

INVOKE THIS SKILL when setting up a new project or when asked about package versions, installation, or dependency management for LangChain, LangGraph, LangSmith, or Deep Agents. Covers required packages, minimum versions, environment requirements, versioning best practices, and common community tool packages for both Python and TypeScript.

langchain-ai/langchain-fundamentals

Create LangChain agents with create_agent, define tools, and use middleware for human-in-the-loop and error handling.

langchain-ai/langchain-middleware

INVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware, or structured output. Covers HumanInTheLoopMiddleware for human approval of dangerous tool calls, creating custom middleware with hooks, Command resume patterns, and structured output with Pydantic/Zod.

langchain-ai/langchain-rag

INVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system. Covers document loaders, RecursiveCharacterTextSplitter, embeddings (OpenAI), and vector stores (Chroma, FAISS, Pinecone).

langchain-ai/langgraph-fundamentals

INVOKE THIS SKILL when writing ANY LangGraph code. Covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error handling.

langchain-ai/langgraph-human-in-the-loop

INVOKE THIS SKILL when implementing human-in-the-loop patterns, pausing for approval, or handling errors in LangGraph. Covers interrupt(), Command(resume=...), approval/validation workflows, and the 4-tier error handling strategy.

langchain-ai/swarm

Dispatches many independent items in parallel: create a table, fan out to subagents, aggregate results. One row = one unit of work.

関連スキル