[PR #969] [MERGED] feat(pregel): add bulk update state method #1150

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/969
Author: @dqbd
Created: 3/7/2025
Status: Merged
Merged: 3/17/2025
Merged by: @dqbd

Base: mainHead: dqbd/bulk-update-state


📝 Commits (5)

  • 42b71fb feat(pregel): add bulk update state method
  • a193c59 Add a test, cleanup
  • 7bc994a Make errors more clearer
  • 40d89b7 feat: perform multiple supersteps at once
  • f7d5b50 Treat values as optional to satisfy TS

📊 Changes

2 files changed (+529 additions, -298 deletions)

View changed files

📝 libs/langgraph/src/pregel/index.ts (+413 -298)
📝 libs/langgraph/src/tests/pregel.test.ts (+116 -0)

📄 Description

This method is useful for recreating a thread from a list of checkpoint writes. A new method is needed to clone a checkpoint that has been created from multiple writes (functional API, map-reduce)

Fixes # (issue)


🔄 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/969 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 3/7/2025 **Status:** ✅ Merged **Merged:** 3/17/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/bulk-update-state` --- ### 📝 Commits (5) - [`42b71fb`](https://github.com/langchain-ai/langgraphjs/commit/42b71fb21e6c3e0289668728eec9b943d8301c69) feat(pregel): add bulk update state method - [`a193c59`](https://github.com/langchain-ai/langgraphjs/commit/a193c591229df1fec63d2b6686578487867e87c5) Add a test, cleanup - [`7bc994a`](https://github.com/langchain-ai/langgraphjs/commit/7bc994a96515a2f0ca992e379ea76af85f04ed77) Make errors more clearer - [`40d89b7`](https://github.com/langchain-ai/langgraphjs/commit/40d89b71b2e6c198c6dafa224b52ea8a8d521184) feat: perform multiple supersteps at once - [`f7d5b50`](https://github.com/langchain-ai/langgraphjs/commit/f7d5b50eef4ca745e6b322740be5862ab93653ac) Treat values as optional to satisfy TS ### 📊 Changes **2 files changed** (+529 additions, -298 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/pregel/index.ts` (+413 -298) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+116 -0) </details> ### 📄 Description This method is useful for recreating a thread from a list of checkpoint writes. A new method is needed to clone a checkpoint that has been created from multiple writes (functional API, map-reduce) <!-- Thank you for contributing to LangGraph.js! Your PR will appear in our next release under the title you set above. Please make sure it highlights your valuable contribution. To help streamline the review process, please make sure you read our contribution guidelines: https://github.com/langchain-ai/langgraphjs/blob/main/CONTRIBUTING.md Replace this block with a description of the change, the issue it fixes (if applicable), and relevant context. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle below! --> <!-- Remove if not applicable --> Fixes # (issue) --- <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:17:26 -05:00
yindo closed this issue 2026-02-15 19:17:26 -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#1150