[PR #1202] [MERGED] feat(langgraph): extend addNode to allow adding multiple nodes at once #1295

Closed
opened 2026-02-15 20:15:09 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1202
Author: @dqbd
Created: 5/21/2025
Status: Merged
Merged: 5/22/2025
Merged by: @dqbd

Base: mainHead: dqbd/add-node-multiple


📝 Commits (2)

  • c019994 feat(langgraph): add interface for adding multiple nodes in parallel
  • e9f75cd Fix typo

📊 Changes

4 files changed (+380 additions, -81 deletions)

View changed files

📝 libs/langgraph/src/graph/graph.ts (+91 -33)
📝 libs/langgraph/src/graph/state.ts (+112 -48)
📝 libs/langgraph/src/tests/graph.test.ts (+132 -0)
📝 libs/langgraph/src/tests/pregel.test.ts (+45 -0)

📄 Description

Similar to #1201, it is more desirable to add multiple nodes at once, instead of doing multiple calls to addNode. Accepts both the tuple syntax and the Record<string, function> syntax.

Also implements test_concurrent_emit_sends test from Python


🔄 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/1202 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 5/21/2025 **Status:** ✅ Merged **Merged:** 5/22/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/add-node-multiple` --- ### 📝 Commits (2) - [`c019994`](https://github.com/langchain-ai/langgraphjs/commit/c01999443c0342d2d19fa702b12b9a915d29e2bb) feat(langgraph): add interface for adding multiple nodes in parallel - [`e9f75cd`](https://github.com/langchain-ai/langgraphjs/commit/e9f75cdb1c796f7f7e45f9f2b17e11755a61b482) Fix typo ### 📊 Changes **4 files changed** (+380 additions, -81 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/graph/graph.ts` (+91 -33) 📝 `libs/langgraph/src/graph/state.ts` (+112 -48) 📝 `libs/langgraph/src/tests/graph.test.ts` (+132 -0) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+45 -0) </details> ### 📄 Description Similar to #1201, it is more desirable to add multiple nodes at once, instead of doing multiple calls to `addNode`. Accepts both the tuple syntax and the `Record<string, function>` syntax. Also implements `test_concurrent_emit_sends` test from Python --- <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 20:15:09 -05:00
yindo closed this issue 2026-02-15 20:15:09 -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#1295