Skip to content

Commit 4c4125c

Browse files
authored
chore(langgraph): undeprecate ToolNode (#1745)
1 parent 41c7694 commit 4c4125c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.changeset/quick-coats-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@langchain/langgraph": patch
3+
---
4+
5+
undeprecate `ToolNode`

libs/langgraph-core/src/prebuilt/tool_node.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ const isSendInput = (input: unknown): input is { lg_tool_call: ToolCall } =>
3434
typeof input === "object" && input != null && "lg_tool_call" in input;
3535

3636
/**
37-
* @deprecated `ToolNode` has been moved to {@link https://www.npmjs.com/package/langchain langchain} package.
38-
* Update your import to `import { ToolNode } from "langchain";`
39-
*
4037
* A node that runs the tools requested in the last AIMessage. It can be used
4138
* either in StateGraph with a "messages" key or in MessageGraph. If multiple
4239
* tool calls are requested, they will be run in parallel. The output will be

0 commit comments

Comments
 (0)