Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import inspect
|
|
| 5 |
import pandas as pd
|
| 6 |
import json
|
| 7 |
|
| 8 |
-
from smolagents import
|
| 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 =
|
| 39 |
tools=[FinalAnswerTool(), DuckDuckGoSearchTool(), VisitWebpageTool()],
|
| 40 |
model=model,
|
| 41 |
-
max_steps=
|
| 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 |
)
|