Spaces:
Sleeping
Sleeping
Add more tools for Agents
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import requests
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
|
@@ -99,7 +100,9 @@ agent = CodeAgent(
|
|
| 99 |
model=model,
|
| 100 |
tools=[final_answer,
|
| 101 |
get_current_time_in_timezone,
|
| 102 |
-
get_weather
|
|
|
|
|
|
|
| 103 |
max_steps=6,
|
| 104 |
verbosity_level=1,
|
| 105 |
grammar=None,
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
+
from tools.visit_webpage import VisitWebpageTool
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
|
|
|
| 100 |
model=model,
|
| 101 |
tools=[final_answer,
|
| 102 |
get_current_time_in_timezone,
|
| 103 |
+
get_weather,
|
| 104 |
+
DuckDuckGoSearchTool,
|
| 105 |
+
VisitWebpageTool], ## add your tools here (don't remove final answer)
|
| 106 |
max_steps=6,
|
| 107 |
verbosity_level=1,
|
| 108 |
grammar=None,
|