AkylaiBva commited on
Commit
bf9b2a2
·
verified ·
1 Parent(s): ea5788b

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +2 -1
tools.py CHANGED
@@ -44,7 +44,8 @@ from smolagents import DuckDuckGoSearchTool
44
 
45
 
46
  def web_search(query, max_results=3):
47
- result = DuckDuckGoSearchTool(query)
 
48
  return result
49
 
50
  def wiki_search(query):
 
44
 
45
 
46
  def web_search(query, max_results=3):
47
+ searchtool = DuckDuckGoSearchTool(query)
48
+ result = searchtool(query)
49
  return result
50
 
51
  def wiki_search(query):