[PR #543] [CLOSED] Allowing checkpointers' serializers to be asynchronous #833

Closed
opened 2026-02-15 19:16:04 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/543
Author: @wpoynter
Created: 10/2/2024
Status: Closed

Base: mainHead: async-serde


📝 Commits (2)

  • 77fbca7 Allowing serdes to be async
  • b9b5a07 Merge branch 'main' into async-serde

📊 Changes

5 files changed (+61 additions, -50 deletions)

View changed files

📝 libs/checkpoint-mongodb/src/index.ts (+29 -24)
📝 libs/checkpoint-sqlite/src/index.ts (+19 -15)
📝 libs/checkpoint/src/memory.ts (+10 -8)
📝 libs/checkpoint/src/serde/base.ts (+2 -2)
📝 libs/langgraph/src/tests/utils.ts (+1 -1)

📄 Description

Updated the SerializationProtocol interface to allow dumpsTyped and loadsTyped to be run synchronously or asynchronously.
Applied await to calls of each function throughout the existing checkpoint savers and tests.

This should allow future users to provide asynchronous serialization and deserialization for their savers, without breaking any current implementations.


🔄 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/langgraphjs/pull/543 **Author:** [@wpoynter](https://github.com/wpoynter) **Created:** 10/2/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `async-serde` --- ### 📝 Commits (2) - [`77fbca7`](https://github.com/langchain-ai/langgraphjs/commit/77fbca70f90ee8845a7093b528998af46df4423f) Allowing serdes to be async - [`b9b5a07`](https://github.com/langchain-ai/langgraphjs/commit/b9b5a07e2b734e352d96502ea315375e2701620d) Merge branch 'main' into async-serde ### 📊 Changes **5 files changed** (+61 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `libs/checkpoint-mongodb/src/index.ts` (+29 -24) 📝 `libs/checkpoint-sqlite/src/index.ts` (+19 -15) 📝 `libs/checkpoint/src/memory.ts` (+10 -8) 📝 `libs/checkpoint/src/serde/base.ts` (+2 -2) 📝 `libs/langgraph/src/tests/utils.ts` (+1 -1) </details> ### 📄 Description Updated the SerializationProtocol interface to allow `dumpsTyped` and `loadsTyped` to be run synchronously or asynchronously. Applied `await` to calls of each function throughout the existing checkpoint savers and tests. This should allow future users to provide asynchronous serialization and deserialization for their savers, without breaking any current implementations. --- <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-15 19:16:04 -05:00
yindo closed this issue 2026-02-15 19:16:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#833