venkat-srinivasan-nexusflow commited on
Commit
7ff240f
Β·
verified Β·
1 Parent(s): cbb4736

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +4 -4
tools.py CHANGED
@@ -259,13 +259,13 @@ class Tools:
259
 
260
  return self.sort_results(places, sort="distance", descending=False)
261
 
262
- def irrelevant_query(self, user_query : str) -> str:
263
  """
264
- This function is designed to handle unrelated queries from the user.
265
- If the user provides any input user query that is unrelated or unanswerable by the other APIs provided,
266
  please use this function with the input user query as the string.
267
 
268
- - user_query (str): The input string that is invalid.
269
  """
270
  return "This query is not answerable. Please provide queries regarding locations, reviews, or recommendations!"
271
 
 
259
 
260
  return self.sort_results(places, sort="distance", descending=False)
261
 
262
+ def out_of_domain(self, user_query : str) -> str:
263
  """
264
+ This function is designed to handle out of domain queries from the user.
265
+ If the user provides any input user query that is out of domain of the other APIs provided above,
266
  please use this function with the input user query as the string.
267
 
268
+ - user_query (str): The input string that is out of domain.
269
  """
270
  return "This query is not answerable. Please provide queries regarding locations, reviews, or recommendations!"
271