Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def browsing_tool_fetch_content(url: str, query_context: str) -> str:
|
|
60 |
return f"Error fetching content from {url}: {str(e)}"
|
61 |
|
62 |
@tool
|
63 |
-
def search_duckduckgo(topic: str, max_results: int =
|
64 |
"""
|
65 |
Searches DuckDuckGo for a given topic, retrieves search results,
|
66 |
and then attempts to fetch the full content of each result URL.
|
@@ -120,7 +120,7 @@ def search_duckduckgo(topic: str, max_results: int = 1) -> list:
|
|
120 |
# Optionally, return partial results or an empty list depending on desired error handling
|
121 |
# return detailed_results_list # Could return what was processed so far
|
122 |
|
123 |
-
return detailed_results_list
|
124 |
|
125 |
|
126 |
|
|
|
60 |
return f"Error fetching content from {url}: {str(e)}"
|
61 |
|
62 |
@tool
|
63 |
+
def search_duckduckgo(topic: str, max_results: int = 3) -> list:
|
64 |
"""
|
65 |
Searches DuckDuckGo for a given topic, retrieves search results,
|
66 |
and then attempts to fetch the full content of each result URL.
|
|
|
120 |
# Optionally, return partial results or an empty list depending on desired error handling
|
121 |
# return detailed_results_list # Could return what was processed so far
|
122 |
|
123 |
+
return detailed_results_list['full_content']
|
124 |
|
125 |
|
126 |
|