Sauten commited on
Commit
6051317
·
verified ·
1 Parent(s): 4977263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -15,7 +15,11 @@ import time
15
 
16
 
17
 
18
- from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, load_tool, tool, FinalAnswerTool, OpenAIServerModel, VisitWebpageTool
 
 
 
 
19
 
20
  # (Keep Constants as is)
21
  # --- Constants ---
@@ -110,7 +114,7 @@ class BasicAgent:
110
 
111
 
112
  agent = ToolCallingAgent(
113
- tools=[FinalAnswerTool(), VisitWebpageTool(), DuckDuckGoSearchTool()],
114
  model=model,
115
  max_steps=5,
116
  verbosity_level=2,
 
15
 
16
 
17
 
18
+ from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, load_tool, tool, FinalAnswerTool, OpenAIServerModel, VisitWebpageTool, PythonInterpreterTool
19
+
20
+ from agentsTools.toolVisitWebpage import visit_webpage
21
+ from agentsTools.tool_fetch_task_file import fetch_task_file
22
+ from agentsTools.tool_read_excel_as_json import read_excel_as_json
23
 
24
  # (Keep Constants as is)
25
  # --- Constants ---
 
114
 
115
 
116
  agent = ToolCallingAgent(
117
+ tools=[FinalAnswerTool(), VisitWebpageTool(), DuckDuckGoSearchTool(), PythonInterpreterTool(), fetch_task_file, read_excel_as_json],
118
  model=model,
119
  max_steps=5,
120
  verbosity_level=2,