Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,14 +14,14 @@ def ddg_tool(query:str, city:str, max_results:int=5)-> list: # it's important to
|
|
| 14 |
# Keep this format for the tool description / args description but feel free to modify the tool
|
| 15 |
"""A tool that searches for restaraunts ina particular location using DuckDuckGo search.
|
| 16 |
Args:
|
| 17 |
-
query: The type of restaraunt or keyword (e.g. "italian").
|
| 18 |
-
city: The
|
| 19 |
max_results: Number of results to return. Maximum number is 5.
|
| 20 |
|
| 21 |
Returns: List of dictionaries with Restaurant Name, city, and URL.
|
| 22 |
"""
|
| 23 |
# Instantiate the tool
|
| 24 |
-
|
| 25 |
|
| 26 |
# Modify query to include city for better results
|
| 27 |
full_query = f"{query} restaurant in {city}"
|
|
|
|
| 14 |
# Keep this format for the tool description / args description but feel free to modify the tool
|
| 15 |
"""A tool that searches for restaraunts ina particular location using DuckDuckGo search.
|
| 16 |
Args:
|
| 17 |
+
query: The type of restaraunt cuisine or keyword (e.g. "italian").
|
| 18 |
+
city: The city in which the restaraunts are located (e.g. "San Diego").
|
| 19 |
max_results: Number of results to return. Maximum number is 5.
|
| 20 |
|
| 21 |
Returns: List of dictionaries with Restaurant Name, city, and URL.
|
| 22 |
"""
|
| 23 |
# Instantiate the tool
|
| 24 |
+
ddg_tool = DuckDuckGoSearchTool()
|
| 25 |
|
| 26 |
# Modify query to include city for better results
|
| 27 |
full_query = f"{query} restaurant in {city}"
|