Update app.py
Browse files
app.py
CHANGED
|
@@ -31,8 +31,8 @@ from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
|
| 31 |
SmolagentsInstrumentor().instrument()
|
| 32 |
|
| 33 |
# Importing the Agent stuff
|
| 34 |
-
from smolagents import CodeAgent,DuckDuckGoSearchTool,VisitWebpageTool, InferenceClientModel, PromptTemplates, EMPTY_PROMPT_TEMPLATES
|
| 35 |
-
from tools.
|
| 36 |
import yaml
|
| 37 |
import time
|
| 38 |
import jinja2
|
|
@@ -64,7 +64,7 @@ class BasicAgent:
|
|
| 64 |
|
| 65 |
self.agent = CodeAgent(
|
| 66 |
model=model,
|
| 67 |
-
tools=[FinalAnswerTool(),
|
| 68 |
additional_authorized_imports=['pandas', 'requests', 'markdownify'],
|
| 69 |
max_steps=10,
|
| 70 |
verbosity_level=1,
|
|
|
|
| 31 |
SmolagentsInstrumentor().instrument()
|
| 32 |
|
| 33 |
# Importing the Agent stuff
|
| 34 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool,VisitWebpageTool,FinalAnswerTool, InferenceClientModel, PromptTemplates, EMPTY_PROMPT_TEMPLATES
|
| 35 |
+
from tools.broadfield_search import BroadfieldWebsearch
|
| 36 |
import yaml
|
| 37 |
import time
|
| 38 |
import jinja2
|
|
|
|
| 64 |
|
| 65 |
self.agent = CodeAgent(
|
| 66 |
model=model,
|
| 67 |
+
tools=[FinalAnswerTool(), BroadfieldWebsearch(), VisitWebpageTool()], ## add your tools here (don't remove final answer),
|
| 68 |
additional_authorized_imports=['pandas', 'requests', 'markdownify'],
|
| 69 |
max_steps=10,
|
| 70 |
verbosity_level=1,
|