Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from smolagents import CodeAgent, InferenceClientModel, OpenAIServerModel
|
|
| 4 |
import requests
|
| 5 |
import inspect
|
| 6 |
import pandas as pd
|
| 7 |
-
from tools import search_tool
|
| 8 |
|
| 9 |
# (Keep Constants as is)
|
| 10 |
# --- Constants ---
|
|
@@ -24,7 +24,7 @@ class BasicAgent:
|
|
| 24 |
api_key=os.environ["OPENAI_API_KEY"],
|
| 25 |
)
|
| 26 |
self.my_agent = CodeAgent(
|
| 27 |
-
tools=[search_tool],
|
| 28 |
model=model,
|
| 29 |
add_base_tools=True, # Add any additional base tools
|
| 30 |
planning_interval=3 # Enable planning every 3 steps
|
|
|
|
| 4 |
import requests
|
| 5 |
import inspect
|
| 6 |
import pandas as pd
|
| 7 |
+
from tools import search_tool, google_search_tool
|
| 8 |
|
| 9 |
# (Keep Constants as is)
|
| 10 |
# --- Constants ---
|
|
|
|
| 24 |
api_key=os.environ["OPENAI_API_KEY"],
|
| 25 |
)
|
| 26 |
self.my_agent = CodeAgent(
|
| 27 |
+
tools=[search_tool, google_search_tool],
|
| 28 |
model=model,
|
| 29 |
add_base_tools=True, # Add any additional base tools
|
| 30 |
planning_interval=3 # Enable planning every 3 steps
|