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,GoogleSearchTool,
|
35 |
from tools.final_answer import FinalAnswerTool
|
36 |
import yaml
|
37 |
|
@@ -60,7 +60,7 @@ class BasicAgent:
|
|
60 |
|
61 |
self.agent = CodeAgent(
|
62 |
model=model,
|
63 |
-
tools=[FinalAnswerTool(), GoogleSearchTool(),
|
64 |
additional_authorized_imports=['pandas'],
|
65 |
max_steps=6,
|
66 |
verbosity_level=1
|
|
|
31 |
SmolagentsInstrumentor().instrument()
|
32 |
|
33 |
# Importing the Agent stuff
|
34 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool,GoogleSearchTool,VisitWebpageTool, InferenceClientModel, PromptTemplates, EMPTY_PROMPT_TEMPLATES
|
35 |
from tools.final_answer import FinalAnswerTool
|
36 |
import yaml
|
37 |
|
|
|
60 |
|
61 |
self.agent = CodeAgent(
|
62 |
model=model,
|
63 |
+
tools=[FinalAnswerTool(), GoogleSearchTool(), VisitWebpageTool()], ## add your tools here (don't remove final answer),
|
64 |
additional_authorized_imports=['pandas'],
|
65 |
max_steps=6,
|
66 |
verbosity_level=1
|