Skip to content

Commit a107175

Browse files
Merge pull request #634 from kashif-saeed1122/patch-1
Update import path for Tool in invitees.mdx
2 parents 8198f37 + 8c2180a commit a107175

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

units/en/unit3/agentic-rag/invitees.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ We will use the `BM25Retriever` from the `langchain_community.retrievers` module
253253
254254
```python
255255
from langchain_community.retrievers import BM25Retriever
256-
from langchain.tools import Tool
256+
from langchain_core.tools import Tool
257257

258258
bm25_retriever = BM25Retriever.from_documents(docs)
259259

units/en/unit3/agentic-rag/tools.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ weather_info_tool = FunctionTool.from_defaults(get_weather_info)
143143
<hfoption id="langgraph">
144144

145145
```python
146-
from langchain.tools import Tool
146+
from langchain_core.tools import Tool
147147
import random
148148

149149
def get_weather_info(location: str) -> str:
@@ -256,7 +256,7 @@ The most downloaded model by facebook is facebook/esmfold_v1 with 12,544,550 dow
256256
<hfoption id="langgraph">
257257

258258
```python
259-
from langchain.tools import Tool
259+
from langchain_core.tools import Tool
260260
from huggingface_hub import list_models
261261

262262
def get_hub_stats(author: str) -> str:

units/es/unit3/agentic-rag/invitees.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Usaremos el `BM25Retriever` del módulo `langchain_community.retrievers` para cr
253253
254254
```python
255255
from langchain_community.retrievers import BM25Retriever
256-
from langchain.tools import Tool
256+
from langchain_core.tools import Tool
257257

258258
bm25_retriever = BM25Retriever.from_documents(docs)
259259

units/es/unit3/agentic-rag/tools.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ weather_info_tool = FunctionTool.from_defaults(get_weather_info)
143143
<hfoption id="langgraph">
144144

145145
```python
146-
from langchain.tools import Tool
146+
from langchain_core.tools import Tool
147147
import random
148148

149149
def get_weather_info(location: str) -> str:
@@ -256,7 +256,7 @@ The most downloaded model by facebook is facebook/esmfold_v1 with 12,544,550 dow
256256
<hfoption id="langgraph">
257257

258258
```python
259-
from langchain.tools import Tool
259+
from langchain_core.tools import Tool
260260
from huggingface_hub import list_models
261261

262262
def get_hub_stats(author: str) -> str:

units/fr/unit3/agentic-rag/invitees.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Nous utiliserons le `BM25Retriever` du module `langchain_community.retrievers` p
252252
253253
```python
254254
from langchain_community.retrievers import BM25Retriever
255-
from langchain.tools import Tool
255+
from langchain_core.tools import Tool
256256

257257
bm25_retriever = BM25Retriever.from_documents(docs)
258258

units/fr/unit3/agentic-rag/tools.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ weather_info_tool = FunctionTool.from_defaults(get_weather_info)
142142
<hfoption id="langgraph">
143143

144144
```python
145-
from langchain.tools import Tool
145+
from langchain_core.tools import Tool
146146
import random
147147

148148
def get_weather_info(location: str) -> str:
@@ -255,7 +255,7 @@ Le modèle le plus téléchargé par facebook est facebook/esmfold_v1 avec 12,54
255255
<hfoption id="langgraph">
256256

257257
```python
258-
from langchain.tools import Tool
258+
from langchain_core.tools import Tool
259259
from huggingface_hub import list_models
260260

261261
def get_hub_stats(author: str) -> str:

units/zh-CN/unit3/agentic-rag/invitees.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ guest_info_tool = FunctionTool.from_defaults(get_guest_info_retriever)
243243
244244
```python
245245
from langchain_community.retrievers import BM25Retriever
246-
from langchain.tools import Tool
246+
from langchain_core.tools import Tool
247247

248248
bm25_retriever = BM25Retriever.from_documents(docs)
249249

units/zh-CN/unit3/agentic-rag/tools.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ weather_info_tool = FunctionTool.from_defaults(get_weather_info)
143143
<hfoption id="langgraph">
144144

145145
```python
146-
from langchain.tools import Tool
146+
from langchain_core.tools import Tool
147147
import random
148148

149149
def get_weather_info(location: str) -> str:
@@ -256,7 +256,7 @@ Facebook 下载次数最多的模型是 facebook/esmfold_v1,下载次数为 12
256256
<hfoption id="langgraph">
257257

258258
```python
259-
from langchain.tools import Tool
259+
from langchain_core.tools import Tool
260260
from huggingface_hub import list_models
261261

262262
def get_hub_stats(author: str) -> str:

0 commit comments

Comments
 (0)