naman1102 commited on
Commit
c40ba50
·
1 Parent(s): 426abb3

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
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.run(query, max_results=5)
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: