[PR #740] [MERGED] feat(langgraph): Allow tools to return Commands and update graph state #980

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/740
Author: @jacoblee93
Created: 12/12/2024
Status: Merged
Merged: 12/12/2024
Merged by: @jacoblee93

Base: mainHead: jacob/tools


📝 Commits (1)

  • 0f24a08 Allow tools to return Commands and update graph state

📊 Changes

14 files changed (+1081 additions, -120 deletions)

View changed files

examples/how-tos/update-state-from-tools.ipynb (+771 -0)
📝 examples/package.json (+1 -1)
📝 libs/langgraph/package.json (+1 -1)
📝 libs/langgraph/src/constants.ts (+25 -3)
📝 libs/langgraph/src/graph/state.ts (+81 -40)
📝 libs/langgraph/src/prebuilt/react_agent_executor.ts (+24 -10)
📝 libs/langgraph/src/prebuilt/tool_node.ts (+18 -2)
📝 libs/langgraph/src/pregel/loop.ts (+3 -3)
📝 libs/langgraph/src/pregel/write.ts (+76 -39)
📝 libs/langgraph/src/tests/prebuilt.test.ts (+56 -1)
📝 libs/langgraph/src/tests/pregel.test.ts (+2 -6)
📝 libs/langgraph/src/tests/tracing.test.ts (+8 -8)
📝 libs/langgraph/src/web.ts (+1 -0)
📝 yarn.lock (+14 -6)

📄 Description

No description provided


🔄 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/740 **Author:** [@jacoblee93](https://github.com/jacoblee93) **Created:** 12/12/2024 **Status:** ✅ Merged **Merged:** 12/12/2024 **Merged by:** [@jacoblee93](https://github.com/jacoblee93) **Base:** `main` ← **Head:** `jacob/tools` --- ### 📝 Commits (1) - [`0f24a08`](https://github.com/langchain-ai/langgraphjs/commit/0f24a080649417e33097eb750310f11ff66d5115) Allow tools to return Commands and update graph state ### 📊 Changes **14 files changed** (+1081 additions, -120 deletions) <details> <summary>View changed files</summary> ➕ `examples/how-tos/update-state-from-tools.ipynb` (+771 -0) 📝 `examples/package.json` (+1 -1) 📝 `libs/langgraph/package.json` (+1 -1) 📝 `libs/langgraph/src/constants.ts` (+25 -3) 📝 `libs/langgraph/src/graph/state.ts` (+81 -40) 📝 `libs/langgraph/src/prebuilt/react_agent_executor.ts` (+24 -10) 📝 `libs/langgraph/src/prebuilt/tool_node.ts` (+18 -2) 📝 `libs/langgraph/src/pregel/loop.ts` (+3 -3) 📝 `libs/langgraph/src/pregel/write.ts` (+76 -39) 📝 `libs/langgraph/src/tests/prebuilt.test.ts` (+56 -1) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+2 -6) 📝 `libs/langgraph/src/tests/tracing.test.ts` (+8 -8) 📝 `libs/langgraph/src/web.ts` (+1 -0) 📝 `yarn.lock` (+14 -6) </details> ### 📄 Description _No description provided_ --- <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:39 -05:00
yindo closed this issue 2026-02-15 19:16:39 -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#980