Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
|
31 |
SmolagentsInstrumentor().instrument()
|
32 |
|
33 |
# Importing the Agent stuff
|
34 |
-
from smolagents import CodeAgent,DuckDuckGoSearchTool,
|
35 |
from tools.final_answer import FinalAnswerTool
|
36 |
import yaml
|
37 |
import time
|
@@ -58,7 +58,7 @@ class BasicAgent:
|
|
58 |
|
59 |
self.agent = CodeAgent(
|
60 |
model=model,
|
61 |
-
tools=[FinalAnswerTool(),
|
62 |
additional_authorized_imports=['pandas'],
|
63 |
max_steps=6,
|
64 |
verbosity_level=1,
|
|
|
31 |
SmolagentsInstrumentor().instrument()
|
32 |
|
33 |
# Importing the Agent stuff
|
34 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool,VisitWebpageTool, InferenceClientModel, PromptTemplates, EMPTY_PROMPT_TEMPLATES
|
35 |
from tools.final_answer import FinalAnswerTool
|
36 |
import yaml
|
37 |
import time
|
|
|
58 |
|
59 |
self.agent = CodeAgent(
|
60 |
model=model,
|
61 |
+
tools=[FinalAnswerTool(), VisitWebpageTool()], ## add your tools here (don't remove final answer),
|
62 |
additional_authorized_imports=['pandas'],
|
63 |
max_steps=6,
|
64 |
verbosity_level=1,
|