[PR #809] [MERGED] reflect new imports from langchain.tools namespace #1040

Closed
opened 2026-02-17 17:21:36 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/809
Author: @eyurtsev
Created: 10/9/2025
Status: Merged
Merged: 10/9/2025
Merged by: @eyurtsev

Base: mainHead: update_tool_node


📝 Commits (1)

📊 Changes

4 files changed (+8 additions, -6 deletions)

View changed files

📝 src/oss/langchain/multi-agent.mdx (+1 -1)
📝 src/oss/langchain/short-term-memory.mdx (+2 -2)
📝 src/oss/langchain/tools.mdx (+3 -2)
📝 src/oss/python/releases/langchain-v1.mdx (+2 -1)

📄 Description

Pull Request Overview

This pull request updates import statements across documentation files to reflect changes in the langchain.tools namespace. Tool-related classes like ToolNode and InjectedState are now imported from langchain.tools instead of langchain.agents.

Key changes:

  • Updated import paths for ToolNode from langchain.agents to langchain.tools
  • Updated import paths for InjectedState from langchain.agents.tool_node to langchain.tools
  • Split combined import statements to separate lines for clarity

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/oss/python/releases/langchain-v1.mdx Updated example code to import ToolNode from the new namespace
src/oss/langchain/tools.mdx Updated two code examples to use the new import path for ToolNode
src/oss/langchain/short-term-memory.mdx Updated two instances of InjectedState import from old to new namespace
src/oss/langchain/multi-agent.mdx Updated InjectedState import to use the new namespace

🔄 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/docs/pull/809 **Author:** [@eyurtsev](https://github.com/eyurtsev) **Created:** 10/9/2025 **Status:** ✅ Merged **Merged:** 10/9/2025 **Merged by:** [@eyurtsev](https://github.com/eyurtsev) **Base:** `main` ← **Head:** `update_tool_node` --- ### 📝 Commits (1) - [`93b04df`](https://github.com/langchain-ai/docs/commit/93b04df06cae1b597558c60fa2726dab7629d56a) x ### 📊 Changes **4 files changed** (+8 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/multi-agent.mdx` (+1 -1) 📝 `src/oss/langchain/short-term-memory.mdx` (+2 -2) 📝 `src/oss/langchain/tools.mdx` (+3 -2) 📝 `src/oss/python/releases/langchain-v1.mdx` (+2 -1) </details> ### 📄 Description ## Pull Request Overview This pull request updates import statements across documentation files to reflect changes in the langchain.tools namespace. Tool-related classes like `ToolNode` and `InjectedState` are now imported from `langchain.tools` instead of `langchain.agents`. ### Key changes: - Updated import paths for `ToolNode` from `langchain.agents` to `langchain.tools` - Updated import paths for `InjectedState` from `langchain.agents.tool_node` to `langchain.tools` - Split combined import statements to separate lines for clarity ### Reviewed Changes Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments. | File | Description | | ---- | ----------- | | src/oss/python/releases/langchain-v1.mdx | Updated example code to import `ToolNode` from the new namespace | | src/oss/langchain/tools.mdx | Updated two code examples to use the new import path for `ToolNode` | | src/oss/langchain/short-term-memory.mdx | Updated two instances of `InjectedState` import from old to new namespace | | src/oss/langchain/multi-agent.mdx | Updated `InjectedState` import to use the new namespace | --- <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-17 17:21:36 -05:00
yindo closed this issue 2026-02-17 17:21:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#1040