Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -103,15 +103,11 @@ class get_hotel_facilities(ToolBase):
|
|
| 103 |
return json_data["general_facilities"]
|
| 104 |
|
| 105 |
@tool_register
|
| 106 |
-
class
|
| 107 |
-
"""Provides a list of available restaurants with their information."""
|
| 108 |
|
| 109 |
@classmethod
|
| 110 |
def invoke(cls, input: Dict) -> str:
|
| 111 |
-
"""
|
| 112 |
-
Play a playlist by its name, starting with the first or a random song.
|
| 113 |
-
"""
|
| 114 |
-
|
| 115 |
return json_data["restaurants"]
|
| 116 |
|
| 117 |
|
|
|
|
| 103 |
return json_data["general_facilities"]
|
| 104 |
|
| 105 |
@tool_register
|
| 106 |
+
class get_restaurants_info(ToolBase):
|
| 107 |
+
"""Provides a list of all available restaurants with their information."""
|
| 108 |
|
| 109 |
@classmethod
|
| 110 |
def invoke(cls, input: Dict) -> str:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
return json_data["restaurants"]
|
| 112 |
|
| 113 |
|