[PR #387] [MERGED] Add metadata to checkpoints, checkpoint inputs before first step #1430

Closed
opened 2026-02-20 17:44:42 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/387
Author: @nfcampos
Created: 5/3/2024
Status: Merged
Merged: 5/6/2024
Merged by: @nfcampos

Base: mainHead: nc/3may/checkpoint-metadata


📝 Commits (7)

  • f304908 Add metadata to checkpoints
  • 3ff3def Remove option to only checkpoint at end of run
  • f160f82 Add checkpoint metadata fields
  • 611ecdb Checkpoint inputs before starting the first step for easier error recovery
  • 48df2d1 Add assert
  • 251bd97 Fix lineage of maual state updates
  • 48865da Fix checkpoint lineage for updates/resumes

📊 Changes

14 files changed (+837 additions, -1459 deletions)

View changed files

📝 langgraph/channels/base.py (+3 -1)
📝 langgraph/checkpoint/__init__.py (+0 -2)
📝 langgraph/checkpoint/aiosqlite.py (+34 -38)
📝 langgraph/checkpoint/base.py (+30 -17)
📝 langgraph/checkpoint/memory.py (+30 -12)
📝 langgraph/checkpoint/sqlite.py (+51 -39)
📝 langgraph/graph/__init__.py (+2 -2)
📝 langgraph/pregel/__init__.py (+145 -110)
📝 langgraph/pregel/types.py (+4 -0)
📝 tests/__snapshots__/test_pregel.ambr (+18 -500)
📝 tests/__snapshots__/test_pregel_async.ambr (+2 -76)
📝 tests/memory_assert.py (+9 -7)
📝 tests/test_pregel.py (+251 -331)
📝 tests/test_pregel_async.py (+258 -324)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/387 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 5/3/2024 **Status:** ✅ Merged **Merged:** 5/6/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/3may/checkpoint-metadata` --- ### 📝 Commits (7) - [`f304908`](https://github.com/langchain-ai/langgraph/commit/f3049081025f02c6d661584d5f35f50b4c2ba043) Add metadata to checkpoints - [`3ff3def`](https://github.com/langchain-ai/langgraph/commit/3ff3def62b4c655906b77c048cd50dfb8b73caee) Remove option to only checkpoint at end of run - [`f160f82`](https://github.com/langchain-ai/langgraph/commit/f160f8291282b3e7d534b924fad1c32b3b05efc0) Add checkpoint metadata fields - [`611ecdb`](https://github.com/langchain-ai/langgraph/commit/611ecdb1cdac1c6f50f6f19b67db18b0c48d384c) Checkpoint inputs before starting the first step for easier error recovery - [`48df2d1`](https://github.com/langchain-ai/langgraph/commit/48df2d10847bd636d2f7ad6657cb3b406d523fb9) Add assert - [`251bd97`](https://github.com/langchain-ai/langgraph/commit/251bd9744de670ced70dc93190ebd9ed750498b0) Fix lineage of maual state updates - [`48865da`](https://github.com/langchain-ai/langgraph/commit/48865daf0220e7c4ca1023696a2d6ee1724d5a4b) Fix checkpoint lineage for updates/resumes ### 📊 Changes **14 files changed** (+837 additions, -1459 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/channels/base.py` (+3 -1) 📝 `langgraph/checkpoint/__init__.py` (+0 -2) 📝 `langgraph/checkpoint/aiosqlite.py` (+34 -38) 📝 `langgraph/checkpoint/base.py` (+30 -17) 📝 `langgraph/checkpoint/memory.py` (+30 -12) 📝 `langgraph/checkpoint/sqlite.py` (+51 -39) 📝 `langgraph/graph/__init__.py` (+2 -2) 📝 `langgraph/pregel/__init__.py` (+145 -110) 📝 `langgraph/pregel/types.py` (+4 -0) 📝 `tests/__snapshots__/test_pregel.ambr` (+18 -500) 📝 `tests/__snapshots__/test_pregel_async.ambr` (+2 -76) 📝 `tests/memory_assert.py` (+9 -7) 📝 `tests/test_pregel.py` (+251 -331) 📝 `tests/test_pregel_async.py` (+258 -324) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:44:42 -05:00
yindo closed this issue 2026-02-20 17:44:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1430