Update agent.py
Browse files
agent.py
CHANGED
|
@@ -205,9 +205,9 @@ def download_and_read_file(task_id: str) -> str:
|
|
| 205 |
def wikipedia_search(query: str):
|
| 206 |
"""
|
| 207 |
Search wikipedia for a query and return a max of three results.
|
| 208 |
-
Takes a string query as the search query
|
| 209 |
Args:
|
| 210 |
-
query (str): The search
|
| 211 |
"""
|
| 212 |
try:
|
| 213 |
search_results = WikipediaLoader(query=query, load_max_docs=3).load()
|
|
|
|
| 205 |
def wikipedia_search(query: str):
|
| 206 |
"""
|
| 207 |
Search wikipedia for a query and return a max of three results.
|
| 208 |
+
Takes a string query as the search query, DO NOT include advanced search operators like "site:...", URLs, or file types, only accepts clean text keywords.
|
| 209 |
Args:
|
| 210 |
+
query (str): The clean search keywords without any search operators.
|
| 211 |
"""
|
| 212 |
try:
|
| 213 |
search_results = WikipediaLoader(query=query, load_max_docs=3).load()
|