[PR #476] [MERGED] feat(langgraph): Adds stores & managed values (memory) #788

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/476
Author: @bracesproul
Created: 9/11/2024
Status: Merged
Merged: 9/17/2024
Merged by: @bracesproul

Base: mainHead: brace/managed-values


📝 Commits (10+)

📊 Changes

23 files changed (+2140 additions, -112 deletions)

View changed files

📝 docs/mkdocs.yml (+1 -0)
examples/how-tos/shared-state.ipynb (+564 -0)
📝 libs/langgraph/src/channels/base.ts (+14 -3)
📝 libs/langgraph/src/constants.ts (+3 -0)
📝 libs/langgraph/src/graph/annotation.ts (+16 -5)
📝 libs/langgraph/src/graph/state.ts (+11 -7)
libs/langgraph/src/managed/base.ts (+187 -0)
libs/langgraph/src/managed/index.ts (+3 -0)
libs/langgraph/src/managed/is_last_step.ts (+8 -0)
libs/langgraph/src/managed/shared_value.ts (+118 -0)
📝 libs/langgraph/src/pregel/algo.ts (+173 -71)
📝 libs/langgraph/src/pregel/index.ts (+124 -17)
📝 libs/langgraph/src/pregel/loop.ts (+41 -1)
📝 libs/langgraph/src/pregel/types.ts (+9 -2)
📝 libs/langgraph/src/pregel/validate.ts (+5 -5)
libs/langgraph/src/store/base.ts (+18 -0)
libs/langgraph/src/store/batch.ts (+166 -0)
libs/langgraph/src/store/index.ts (+3 -0)
libs/langgraph/src/store/memory.ts (+34 -0)
📝 libs/langgraph/src/tests/pregel.test.ts (+569 -1)

...and 3 more files

📄 Description

TODO: add tests that verifies managed values get passed through, but aren't stored in checkpointer


🔄 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/476 **Author:** [@bracesproul](https://github.com/bracesproul) **Created:** 9/11/2024 **Status:** ✅ Merged **Merged:** 9/17/2024 **Merged by:** [@bracesproul](https://github.com/bracesproul) **Base:** `main` ← **Head:** `brace/managed-values` --- ### 📝 Commits (10+) - [`deea1c5`](https://github.com/langchain-ai/langgraphjs/commit/deea1c5e31301a525d6f65eac08cc0b69384b51d) langgraph[minor]: Stores - [`eb9bcda`](https://github.com/langchain-ai/langgraphjs/commit/eb9bcda9738d22d508b34dbd3ad4ebbee0e50db0) implement - [`7a66d82`](https://github.com/langchain-ai/langgraphjs/commit/7a66d82242e0054bcc23774ec621610f8392d92d) improvements - [`344bd03`](https://github.com/langchain-ai/langgraphjs/commit/344bd03cafa718a0cf8575a8d9955577baa9fea8) langgraph[minor]: Implement managed values - [`8d24b2d`](https://github.com/langchain-ai/langgraphjs/commit/8d24b2d850f83c07f1f6493420b8bdbcb7f343fe) implemented - [`fd4805a`](https://github.com/langchain-ai/langgraphjs/commit/fd4805ae6b52c90614910ceb3352ff2fda22f7eb) nits - [`7e04645`](https://github.com/langchain-ai/langgraphjs/commit/7e0464534755d9c0332ce295752aa0d7bae3a561) fixup tests - [`6551816`](https://github.com/langchain-ai/langgraphjs/commit/6551816a0487c75e410e1c731ed5f0193ef8634a) cleanup test - [`0189910`](https://github.com/langchain-ai/langgraphjs/commit/018991007e1587fa9a534675a2af1773eafd8059) TEST PASSED RAWRRRRRRRRRR - [`9c6aa80`](https://github.com/langchain-ai/langgraphjs/commit/9c6aa801565a8d247456a7dcc216b79f49591a55) format and lint ### 📊 Changes **23 files changed** (+2140 additions, -112 deletions) <details> <summary>View changed files</summary> 📝 `docs/mkdocs.yml` (+1 -0) ➕ `examples/how-tos/shared-state.ipynb` (+564 -0) 📝 `libs/langgraph/src/channels/base.ts` (+14 -3) 📝 `libs/langgraph/src/constants.ts` (+3 -0) 📝 `libs/langgraph/src/graph/annotation.ts` (+16 -5) 📝 `libs/langgraph/src/graph/state.ts` (+11 -7) ➕ `libs/langgraph/src/managed/base.ts` (+187 -0) ➕ `libs/langgraph/src/managed/index.ts` (+3 -0) ➕ `libs/langgraph/src/managed/is_last_step.ts` (+8 -0) ➕ `libs/langgraph/src/managed/shared_value.ts` (+118 -0) 📝 `libs/langgraph/src/pregel/algo.ts` (+173 -71) 📝 `libs/langgraph/src/pregel/index.ts` (+124 -17) 📝 `libs/langgraph/src/pregel/loop.ts` (+41 -1) 📝 `libs/langgraph/src/pregel/types.ts` (+9 -2) 📝 `libs/langgraph/src/pregel/validate.ts` (+5 -5) ➕ `libs/langgraph/src/store/base.ts` (+18 -0) ➕ `libs/langgraph/src/store/batch.ts` (+166 -0) ➕ `libs/langgraph/src/store/index.ts` (+3 -0) ➕ `libs/langgraph/src/store/memory.ts` (+34 -0) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+569 -1) _...and 3 more files_ </details> ### 📄 Description TODO: add tests that verifies managed values get passed through, but aren't stored in checkpointer --- <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:15:54 -05:00
yindo closed this issue 2026-02-15 19:15:54 -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#788