Spaces:
Sleeping
Sleeping
Update tools/tools.py
Browse files- 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]
|