[PR #516] [MERGED] fix: Fix message serialization in prebuilt reducer, add subgraph docs #816

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/516
Author: @bracesproul
Created: 9/25/2024
Status: Merged
Merged: 9/26/2024
Merged by: @jacoblee93

Base: mainHead: brace/subgraph-docs


📝 Commits (10+)

📊 Changes

17 files changed (+2700 additions, -422 deletions)

View changed files

📝 docs/_scripts/copy_notebooks.py (+1 -1)
docs/docs/how-tos/img/doubly-nested-subgraph.jpeg (+0 -0)
docs/docs/how-tos/img/single-nested-subgraph.jpeg (+0 -0)
📝 docs/docs/how-tos/index.md (+6 -0)
📝 docs/mkdocs.yml (+4 -0)
📝 examples/how-tos/breakpoints.ipynb (+3 -3)
examples/how-tos/img/doubly-nested-subgraph.jpeg (+0 -0)
examples/how-tos/img/single-nested-subgraph.jpeg (+0 -0)
examples/how-tos/subgraph-transform-state.ipynb (+279 -0)
📝 examples/how-tos/subgraph.ipynb (+538 -345)
examples/how-tos/subgraphs-manage-state.ipynb (+1741 -0)
📝 libs/langgraph/src/graph/message.ts (+2 -0)
📝 libs/langgraph/src/pregel/index.ts (+2 -2)
📝 libs/langgraph/src/tests/prebuilt.test.ts (+52 -32)
📝 libs/langgraph/src/tests/pregel.test.ts (+32 -33)
📝 libs/langgraph/src/tests/utils.ts (+39 -6)
📝 libs/langgraph/src/web.ts (+1 -0)

📄 Description

Fork of Jacob/subgraphs

Added three subgraph docs from python (atm only subgraph.ipynb has been ported)

Notes:

  • Return value when specifying subgraphs: true is weird, not sure what the different array items should represent
    • Note on PregelOptions.subgraphs is Whether to stream subgraphs. but it lets me pass it to .invoke calls (and it's not returning an iterator). Is this a bad jsdoc, bug, something else? Not really sure what passing this field does.

🔄 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/516 **Author:** [@bracesproul](https://github.com/bracesproul) **Created:** 9/25/2024 **Status:** ✅ Merged **Merged:** 9/26/2024 **Merged by:** [@jacoblee93](https://github.com/jacoblee93) **Base:** `main` ← **Head:** `brace/subgraph-docs` --- ### 📝 Commits (10+) - [`a6c49cf`](https://github.com/langchain-ai/langgraphjs/commit/a6c49cf44e80cc4d9ef65129a9d7dbc5719f5505) Start subgraph implementation - [`712c117`](https://github.com/langchain-ai/langgraphjs/commit/712c1179622bdc17f1b6ae5cf6666582796503d2) Merge branch 'main' of https://github.com/langchain-ai/langgraphjs into jacob/subgraphs - [`975f292`](https://github.com/langchain-ai/langgraphjs/commit/975f29249a37bb4f7e1e56f5b1d5060087f02faf) Populate checkpoint maps on internal tasks, add parents field to metadata - [`a2c4715`](https://github.com/langchain-ai/langgraphjs/commit/a2c471582d0af9c9e7faa1e1a24c950bc7950e02) Fix build - [`24156d8`](https://github.com/langchain-ai/langgraphjs/commit/24156d840c73b9528fa64b635d59da51ac8188b6) Format - [`a6b8ac4`](https://github.com/langchain-ai/langgraphjs/commit/a6b8ac40ec202e3c224766952c5905ee05b38e81) Update getStateHistory to account for subgraphs - [`2cbbb9c`](https://github.com/langchain-ai/langgraphjs/commit/2cbbb9c8657f4b753334d56eaa1e893b0ede10f9) Refactor task execution - [`5ddfd98`](https://github.com/langchain-ai/langgraphjs/commit/5ddfd98be85961e8d7bda56f101fc3ecee8f6279) Working basic subgraph resumption - [`f0e4ffe`](https://github.com/langchain-ai/langgraphjs/commit/f0e4ffe864d0c9ed9a54e3ff9afa021792da2244) Merge branch 'main' of https://github.com/langchain-ai/langgraphjs into jacob/subgraphs - [`3a370ce`](https://github.com/langchain-ai/langgraphjs/commit/3a370ce893d22bc3cc447d5f50b11fbf7ab35636) Merge branch 'main' of https://github.com/langchain-ai/langgraphjs into jacob/subgraphs ### 📊 Changes **17 files changed** (+2700 additions, -422 deletions) <details> <summary>View changed files</summary> 📝 `docs/_scripts/copy_notebooks.py` (+1 -1) ➕ `docs/docs/how-tos/img/doubly-nested-subgraph.jpeg` (+0 -0) ➕ `docs/docs/how-tos/img/single-nested-subgraph.jpeg` (+0 -0) 📝 `docs/docs/how-tos/index.md` (+6 -0) 📝 `docs/mkdocs.yml` (+4 -0) 📝 `examples/how-tos/breakpoints.ipynb` (+3 -3) ➕ `examples/how-tos/img/doubly-nested-subgraph.jpeg` (+0 -0) ➕ `examples/how-tos/img/single-nested-subgraph.jpeg` (+0 -0) ➕ `examples/how-tos/subgraph-transform-state.ipynb` (+279 -0) 📝 `examples/how-tos/subgraph.ipynb` (+538 -345) ➕ `examples/how-tos/subgraphs-manage-state.ipynb` (+1741 -0) 📝 `libs/langgraph/src/graph/message.ts` (+2 -0) 📝 `libs/langgraph/src/pregel/index.ts` (+2 -2) 📝 `libs/langgraph/src/tests/prebuilt.test.ts` (+52 -32) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+32 -33) 📝 `libs/langgraph/src/tests/utils.ts` (+39 -6) 📝 `libs/langgraph/src/web.ts` (+1 -0) </details> ### 📄 Description Fork of `Jacob/subgraphs` Added three subgraph docs from python (atm only `subgraph.ipynb` has been ported) Notes: - Return value when specifying `subgraphs: true` is weird, not sure what the different array items should represent - Note on `PregelOptions.subgraphs` is `Whether to stream subgraphs.` but it lets me pass it to `.invoke` calls (and it's not returning an iterator). Is this a bad jsdoc, bug, something else? Not really sure what passing this field does. --- <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:00 -05:00
yindo closed this issue 2026-02-15 19:16:00 -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#816