yetessam commited on
Commit
730a18a
·
verified ·
1 Parent(s): a5e5cd6

Update tools/tools.py

Browse files
Files changed (1) hide show
  1. tools/tools.py +2 -2
tools/tools.py CHANGED
@@ -5,7 +5,7 @@ from .web_search import DuckDuckGoSearchTool
5
  from .time_tool import get_the_current_time_in_timezone
6
 
7
  # Initialize tools
8
- final_answer = FinalAnswerTool()
9
  polite_guard = PoliteGuardTool()
10
  web_search = DuckDuckGoSearchTool()
11
 
@@ -16,4 +16,4 @@ web_search = DuckDuckGoSearchTool()
16
  def load_tools():
17
  # Removing final answer from tools during build process
18
  #return [final_answer, polite_guard, web_search, get_the_current_time_in_timezone]
19
- return [polite_guard]
 
5
  from .time_tool import get_the_current_time_in_timezone
6
 
7
  # Initialize tools
8
+ #final_answer = FinalAnswerTool() in the current version of smolagents, we don't need to load the final answer tool
9
  polite_guard = PoliteGuardTool()
10
  web_search = DuckDuckGoSearchTool()
11
 
 
16
  def load_tools():
17
  # Removing final answer from tools during build process
18
  #return [final_answer, polite_guard, web_search, get_the_current_time_in_timezone]
19
+ return [polite_guard, web_search, get_the_current_time_in_timezone]