Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
@@ -363,8 +363,8 @@ class modify_reservation(ToolBase):
|
|
363 |
reservations["reservation_id"]["check_out_date"] = new_check_out_date if new_check_out_date else reservations["reservation_id"]["check_out_date"]
|
364 |
reservations["reservation_id"]["room_type"] = new_room_type if new_room_type else reservations["reservation_id"]["room_type"]
|
365 |
reservations["reservation_id"]["room_number"] = room_number
|
366 |
-
|
367 |
-
return f"The reservation {reservation_id} is modified correctly: {json.dumps(
|
368 |
|
369 |
@tool_register
|
370 |
class reservation_details(ToolBase):
|
|
|
363 |
reservations["reservation_id"]["check_out_date"] = new_check_out_date if new_check_out_date else reservations["reservation_id"]["check_out_date"]
|
364 |
reservations["reservation_id"]["room_type"] = new_room_type if new_room_type else reservations["reservation_id"]["room_type"]
|
365 |
reservations["reservation_id"]["room_number"] = room_number
|
366 |
+
tmp_data = reservations["reservation_id"]
|
367 |
+
return f"The reservation {reservation_id} is modified correctly: {json.dumps(tmp_data)}"
|
368 |
|
369 |
@tool_register
|
370 |
class reservation_details(ToolBase):
|