Sauten commited on
Commit
cbe288f
·
verified ·
1 Parent(s): 6934dd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,7 +5,7 @@ import inspect
5
  import pandas as pd
6
  import json
7
 
8
- from smolagents import CodeAgent, DuckDuckGoSearchTool, load_tool, tool, FinalAnswerTool, OpenAIServerModel, VisitWebpageTool
9
 
10
  # (Keep Constants as is)
11
  # --- Constants ---
@@ -35,10 +35,10 @@ class BasicAgent:
35
  print(f"Agent received question (first 50 chars): {question[:50]}...")
36
 
37
 
38
- agent = CodeAgent(
39
  tools=[FinalAnswerTool(), DuckDuckGoSearchTool(), VisitWebpageTool()],
40
  model=model,
41
- max_steps=20,
42
  verbosity_level=2,
43
  planning_interval=2
44
  )
 
5
  import pandas as pd
6
  import json
7
 
8
+ from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, load_tool, tool, FinalAnswerTool, OpenAIServerModel, VisitWebpageTool
9
 
10
  # (Keep Constants as is)
11
  # --- Constants ---
 
35
  print(f"Agent received question (first 50 chars): {question[:50]}...")
36
 
37
 
38
+ agent = ToolCallingAgent(
39
  tools=[FinalAnswerTool(), DuckDuckGoSearchTool(), VisitWebpageTool()],
40
  model=model,
41
+ max_steps=10,
42
  verbosity_level=2,
43
  planning_interval=2
44
  )