Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def get_stock_price(stock: str) -> str:
|
|
| 86 |
return f"Error fetching price for stock '{stock}': {str(e)}"
|
| 87 |
|
| 88 |
@tool
|
| 89 |
-
def
|
| 90 |
"""
|
| 91 |
Fetches the information using DuckDuckGo search.
|
| 92 |
Args:
|
|
@@ -139,7 +139,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 139 |
|
| 140 |
agent = CodeAgent(
|
| 141 |
model=model,
|
| 142 |
-
tools=[final_answer, get_stock_price, get_current_time_in_timezone,
|
| 143 |
max_steps=6,
|
| 144 |
verbosity_level=1,
|
| 145 |
grammar=None,
|
|
|
|
| 86 |
return f"Error fetching price for stock '{stock}': {str(e)}"
|
| 87 |
|
| 88 |
@tool
|
| 89 |
+
def duckweb_search(query: str) -> str:
|
| 90 |
"""
|
| 91 |
Fetches the information using DuckDuckGo search.
|
| 92 |
Args:
|
|
|
|
| 139 |
|
| 140 |
agent = CodeAgent(
|
| 141 |
model=model,
|
| 142 |
+
tools=[final_answer, get_stock_price, get_current_time_in_timezone, duckweb_search], ## add your tools here (don't remove final answer)
|
| 143 |
max_steps=6,
|
| 144 |
verbosity_level=1,
|
| 145 |
grammar=None,
|