mohammadKa143 commited on
Commit
aaad9ae
·
verified ·
1 Parent(s): 2f6b955

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 1) -> 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,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