Spaces:
Runtime error
Runtime error
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -259,13 +259,13 @@ class Tools:
|
|
| 259 |
|
| 260 |
return self.sort_results(places, sort="distance", descending=False)
|
| 261 |
|
| 262 |
-
def
|
| 263 |
"""
|
| 264 |
-
This function is designed to handle
|
| 265 |
-
If the user provides any input user query that is
|
| 266 |
please use this function with the input user query as the string.
|
| 267 |
|
| 268 |
-
- user_query (str): The input string that is
|
| 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 |
|