[PR #897] [MERGED] docs: replace hand-coded 'toolNode' function with 'new ToolNode' #1095

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/897
Author: @bguiz
Created: 2/26/2025
Status: Merged
Merged: 3/2/2025
Merged by: @benjamincburns

Base: mainHead: docs/workflows-toolnode-update


📝 Commits (2)

  • a3c07a1 docs: in the 'agent' code example replace hand-coded 'toolNode' function with an instance from '@langchain/langgraph/prebuilt/ToolNode'
  • b883494 Merge branch 'main' into docs/workflows-toolnode-update

📊 Changes

1 file changed (+2 additions, -20 deletions)

View changed files

📝 docs/docs/tutorials/workflows/index.md (+2 -20)

📄 Description

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!

twitter | bluesky

Fixes: Nil


🔄 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/897 **Author:** [@bguiz](https://github.com/bguiz) **Created:** 2/26/2025 **Status:** ✅ Merged **Merged:** 3/2/2025 **Merged by:** [@benjamincburns](https://github.com/benjamincburns) **Base:** `main` ← **Head:** `docs/workflows-toolnode-update` --- ### 📝 Commits (2) - [`a3c07a1`](https://github.com/langchain-ai/langgraphjs/commit/a3c07a1dd3f669f84c9cb81f5dc8c7c65b28315d) docs: in the 'agent' code example replace hand-coded 'toolNode' function with an instance from '@langchain/langgraph/prebuilt/ToolNode' - [`b883494`](https://github.com/langchain-ai/langgraphjs/commit/b883494c7a094c4d0d74f2c3f1b5f0965a216941) Merge branch 'main' into docs/workflows-toolnode-update ### 📊 Changes **1 file changed** (+2 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `docs/docs/tutorials/workflows/index.md` (+2 -20) </details> ### 📄 Description - WHAT: in docs, replace 'toolNode' function with an instance from '@langchain/langgraph/prebuilt/ToolNode' - NOTE: that on langchain 0.3.40 + langgraph 0.2.46, the current code example does *not* work - AFFECTS: https://langchain-ai.github.io/langgraphjs/tutorials/workflows/#agent - DEMO: [See video](https://www.youtube.com/watch?v=1jerPeBZXo4&list=PLjyCRcs63y83jlubHbD54BSWbdFvENoo-) > 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! [twitter](https://twitter.com/bguiz) | [bluesky](https://bsky.app/profile/bguiz.com) Fixes: Nil --- <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:11 -05:00
yindo closed this issue 2026-02-15 19:17:11 -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#1095