This function checks the availability of a property given its ID. Parameters: propertyId (int): The ID of the property. Returns: dict: A dictionary that contains the availability of the property.
(propertyId: int)
| 251 | |
| 252 | @tool.get("/check_availability") |
| 253 | def check_availability(propertyId: int) -> dict: |
| 254 | """ |
| 255 | This function checks the availability of a property given its ID. |
| 256 | |
| 257 | Parameters: |
| 258 | propertyId (int): The ID of the property. |
| 259 | |
| 260 | Returns: |
| 261 | dict: A dictionary that contains the availability of the property. |
| 262 | """ |
| 263 | params = { |
| 264 | 'propertyId': propertyId, |
| 265 | } |
| 266 | response = requests.get(f"{BASE_URL}/checkAvailability", headers=HEADERS, params=params) |
| 267 | return response.json() |
| 268 | |
| 269 | @tool.get("/get_property_reviews") |
| 270 | def get_property_reviews(propertyId: int) -> dict: |
nothing calls this directly
no outgoing calls
no test coverage detected