Update src/tools/tools.py
Browse files- src/tools/tools.py +8 -1
src/tools/tools.py
CHANGED
|
@@ -368,7 +368,14 @@ def arxiv_search(
|
|
| 368 |
def web_extract(urls : List[str]) -> str:
|
| 369 |
"""
|
| 370 |
Extract text content from web pages using TavilyExtract.
|
| 371 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 372 |
"""
|
| 373 |
|
| 374 |
tool = TavilyExtract(
|
|
|
|
| 368 |
def web_extract(urls : List[str]) -> str:
|
| 369 |
"""
|
| 370 |
Extract text content from web pages using TavilyExtract.
|
| 371 |
+
|
| 372 |
+
🔹 Input: {"urls": str | List[str]}
|
| 373 |
+
- Example: web_extract.invoke({"urls": ["https://python.langchain.com/docs/introduction/"]})
|
| 374 |
+
🔹 Output: JSON string with {url, title, text, images?}
|
| 375 |
+
|
| 376 |
+
Options:
|
| 377 |
+
include_images (bool) – add image URLs if True
|
| 378 |
+
extract_depth (str) – "basic" (default) or "advanced"
|
| 379 |
"""
|
| 380 |
|
| 381 |
tool = TavilyExtract(
|