Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/hotel_receptionist/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"late_arrival_note",
"message",
"situation",
"delivery_instructions",
}
)

Expand Down
10 changes: 5 additions & 5 deletions examples/hotel_receptionist/book_room.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
RoomExtra,
RoomType,
Unavailable,
describe_room_options,
speak_usd,
)
from persona import COMMON_INSTRUCTIONS
Expand Down Expand Up @@ -139,12 +140,11 @@ async def set_stay(
available_types = {a.type for a in avail}
if self._room_type and self._room_type not in available_types:
self._room_type = None # prior choice no longer fits the new dates
options = " | ".join(
f"{a.type.replace('_', ' ')} ({speak_usd(a.nightly_rate)}/night, "
f"{' or '.join(a.views)} view{'s' if len(a.views) > 1 else ''})"
for a in avail
return (
f"stay recorded ({check_in} to {check_out}, {guests} guests)\n"
f"options (the views on a type's line are the only views that type has):\n"
f"{describe_room_options(avail)}\n{self._status()}"
)
return f"stay recorded ({check_in} to {check_out}, {guests} guests); options: {options} | {self._status()}"

@function_tool()
async def choose_room(
Expand Down
Loading
Loading