[PR #1941] [CLOSED] fix(docs): import tool directly from langchain_core.tools #1992

Closed
opened 2026-02-17 17:22:57 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1941
Author: @bansalkanav
Created: 12/16/2025
Status: Closed

Base: mainHead: patch-2


📝 Commits (1)

  • 95913b8 Update imports from langchain to langchain_core

📊 Changes

1 file changed (+11 additions, -6 deletions)

View changed files

📝 src/oss/langchain/tools.mdx (+11 -6)

📄 Description

Description:

Updated the documentation to import tool directly from langchain_core.tools instead of langchain.tools.

langchain.tools is a thin wrapper that simply re-exports tool from langchain_core.tools, adding no functional value and introducing an unnecessary import layer. This change improves clarity, aligns with the core API, and makes the documentation more future-proof with respect to version stability.

Issue: N/A

Dependencies: None

Twitter handle: N/A


🔄 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/1941 **Author:** [@bansalkanav](https://github.com/bansalkanav) **Created:** 12/16/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`95913b8`](https://github.com/langchain-ai/docs/commit/95913b8256812bdd979d0119c55eb3fae074cde0) Update imports from langchain to langchain_core ### 📊 Changes **1 file changed** (+11 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/tools.mdx` (+11 -6) </details> ### 📄 Description ## **Description:** Updated the documentation to import `tool` directly from `langchain_core.tools` instead of `langchain.tools`. `langchain.tools` is a thin wrapper that simply re-exports tool from `langchain_core.tools`, adding no functional value and introducing an unnecessary import layer. This change improves clarity, aligns with the core API, and makes the documentation more future-proof with respect to version stability. ## **Issue:** N/A ## **Dependencies:** None ## **Twitter handle:** N/A --- <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:22:57 -05:00
yindo closed this issue 2026-02-17 17:22:57 -05:00
yindo changed title from [PR #1941] fix(docs): import tool directly from langchain_core.tools to [PR #1941] [CLOSED] fix(docs): import tool directly from langchain_core.tools 2026-06-05 18:16:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#1992