Commit
·
ebee0e4
1
Parent(s):
98abdf5
Fix import with duck duck go search tool
Browse files
agent.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from smolagents import LiteLLMModel, ToolCallingAgent, CodeAgent
|
|
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
# --- Basic Agent Definition ---
|
|
|
|
| 1 |
from smolagents import LiteLLMModel, ToolCallingAgent, CodeAgent
|
| 2 |
+
from tools import DuckDuckGoSearchTool
|
| 3 |
import os
|
| 4 |
|
| 5 |
# --- Basic Agent Definition ---
|
app.py
CHANGED
|
@@ -5,17 +5,6 @@ import inspect
|
|
| 5 |
import pandas as pd
|
| 6 |
from agent import BasicAgent
|
| 7 |
|
| 8 |
-
from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
|
| 9 |
-
|
| 10 |
-
# Initialize the web search tool
|
| 11 |
-
search_tool = DuckDuckGoSearchTool()
|
| 12 |
-
|
| 13 |
-
# Initialize the weather tool
|
| 14 |
-
weather_info_tool = WeatherInfoTool()
|
| 15 |
-
|
| 16 |
-
# Initialize the Hub stats tool
|
| 17 |
-
hub_stats_tool = HubStatsTool()
|
| 18 |
-
|
| 19 |
|
| 20 |
# (Keep Constants as is)
|
| 21 |
# --- Constants ---
|
|
|
|
| 5 |
import pandas as pd
|
| 6 |
from agent import BasicAgent
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
# (Keep Constants as is)
|
| 10 |
# --- Constants ---
|