Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
@@ -56,7 +56,7 @@ def web_search_tool(state: AgentState) -> AgentState:
|
|
56 |
|
57 |
for attempt in range(1, max_retries + 1):
|
58 |
try:
|
59 |
-
result_text = ddg
|
60 |
except Exception as e:
|
61 |
# Network error or timeout—retry up to max_retries
|
62 |
if attempt < max_retries:
|
|
|
56 |
|
57 |
for attempt in range(1, max_retries + 1):
|
58 |
try:
|
59 |
+
result_text = ddg(query, max_results=5)
|
60 |
except Exception as e:
|
61 |
# Network error or timeout—retry up to max_retries
|
62 |
if attempt < max_retries:
|