jeipollack commited on
Commit
cb0e2f8
·
verified ·
1 Parent(s): d6eb9ce

Add missing rating arg to query instruction

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ def find_open_restaurants(location: str, cuisine: str, rating: float, timezone:
17
  Args:
18
  location: A string representing the location area to search for open restaurants.
19
  cuisine: A string representing the cuisine type (e.g. Asian, Indian, Italian, breakfast, lunch, etc.)
20
- rating: A float representing the customer rating of the restaurant.
21
  timezone: A string representing a valid timezone (e.g., 'America/New_York').
22
  """
23
  try:
@@ -26,7 +26,7 @@ def find_open_restaurants(location: str, cuisine: str, rating: float, timezone:
26
  local_time = datetime.datetime.now(tz).strftime("%H:%M")
27
 
28
  # Search for restaurants of the specified cuisine that are open now
29
- query = f"{cuisine} restaurants open now in {location}"
30
  search_results = search_tool(query) # Properly call the search tool
31
 
32
  if not search_results:
 
17
  Args:
18
  location: A string representing the location area to search for open restaurants.
19
  cuisine: A string representing the cuisine type (e.g. Asian, Indian, Italian, breakfast, lunch, etc.)
20
+ rating: A float representing the average customer rating of the restaurant from Google, TripAdvisor, or Yelp.
21
  timezone: A string representing a valid timezone (e.g., 'America/New_York').
22
  """
23
  try:
 
26
  local_time = datetime.datetime.now(tz).strftime("%H:%M")
27
 
28
  # Search for restaurants of the specified cuisine that are open now
29
+ query = f"{cuisine} restaurants open now in {location} with rating equal to or greater than {rating}."
30
  search_results = search_tool(query) # Properly call the search tool
31
 
32
  if not search_results: