Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
@@ -3,6 +3,13 @@ from langchain_community.tools import DuckDuckGoSearchRun
|
|
3 |
import pandas as pd
|
4 |
@tool
|
5 |
def web_search(query: str) -> str:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
ddg = DuckDuckGoSearchRun()
|
7 |
return ddg.run(query)
|
8 |
|
|
|
3 |
import pandas as pd
|
4 |
@tool
|
5 |
def web_search(query: str) -> str:
|
6 |
+
"""
|
7 |
+
Search the web for information.
|
8 |
+
Args:
|
9 |
+
query: The query to search the web for.
|
10 |
+
Returns:
|
11 |
+
The search results.
|
12 |
+
"""
|
13 |
ddg = DuckDuckGoSearchRun()
|
14 |
return ddg.run(query)
|
15 |
|