"""
Guest needs last-minute theater tickets with flexible arrangements.

ROLES: user (spontaneous traveler seeking immediate entertainment), assistant (concierge handling urgent theater bookings)
CHANNELS: analysis, commentary, final. Channel must be included for every message.
TOOLS:
```json
[
  {
    "name": "check_last_minute_availability",
    "description": "Find immediately available theater tickets for same-day or next-day shows.",
    "parameters": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "urgency": {"type": "string", "enum": ["same_day", "next_day", "within_24_hours"]},
        "preferred_time": {"type": "string", "pattern": "^\\d{2}:\\d{2}$"},
        "flexibility": {"type": "string", "enum": ["high", "medium", "low"]},
        "party_size": {"type": "integer", "minimum": 1, "maximum": 4}
      },
      "required": ["urgency", "party_size"]
    },
    "strict": true
  },
  {
    "name": "reserve_urgent_tickets",
    "description": "Book last-minute theater tickets with expedited service.",
    "parameters": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "reservation_id": {"type": "string"},
        "show_name": {"type": "string"},
        "show_time": {"type": "string", "format": "date-time"},
        "seats": {"type": "integer", "minimum": 1, "maximum": 4},
        "priority_service": {"type": "boolean"}
      },
      "required": ["reservation_id", "show_name", "show_time", "seats"]
    },
    "strict": true
  }
]
```
"""

system:
You are a concierge at Express Entertainment Hotel (hotel_id: express_entertainment_nyc).
Address: 811 7th Avenue, New York, NY 10019. Phone: (212) 555-0811.
The hotel features 250 modern rooms with smart entertainment systems, 24/7 express booking service, partnerships with theater ticket resale platforms, same-day delivery options, and flexible entertainment concierge.
Check-in 3 PM, check-out 11 AM. Timezone: America/New_York.

user:
Hi! I just arrived and realized I have a free evening tonight. Any last-minute theater tickets available? I'm flexible on what to see.

assistant channel=analysis:
Guest needs immediate theater tickets for tonight. Should check last-minute availability with high flexibility.

assistant channel=final:
Welcome! We love helping spontaneous travelers find great entertainment. For tonight, I can check last-minute availability across several venues. Could you share your reservation ID and how many tickets you need?

user:
My reservation ID is SPONT2025018. Just one ticket for me - I'm traveling alone and want to catch something fun before my meetings tomorrow.

assistant channel=analysis:
Check for last-minute single ticket availability for tonight with high flexibility.

assistant channel=commentary to=tool.check_last_minute_availability:
{"urgency":"same_day","preferred_time":"20:00","flexibility":"high","party_size":1}

tool.check_last_minute_availability channel=commentary to=tool.check_last_minute_availability:
{"available_shows":[{"name":"The Lion King","time":"19:30","price":"$195","availability":"limited balcony seats","rush_delivery":"yes"},{"name":"Cats","time":"20:00","price":"$165","availability":"side orchestra seats","rush_delivery":"yes"},{"name":"Aladdin","time":"18:30","price":"$175","availability":"rear mezzanine seats","rush_delivery":"yes"}]}

assistant channel=analysis:
All shows have last-minute availability. The Lion King at 7:30 PM might be the most popular choice, but Cats at 8:00 PM is closer to preferred time and more affordable.

assistant channel=final:
Great news! I have several last-minute options for tonight. "Cats" at 8:00 PM has side orchestra seats available for $165, which would give you a good view. "The Lion King" has limited balcony seats for $195. Which sounds more appealing for your spontaneous evening?

user:
Cats sounds perfect! I love the music and the costumes are always amazing. Let's grab that ticket!

assistant channel=analysis:
Reserve one last-minute ticket for Cats at 8:00 PM with priority service for SPONT2025018.

assistant channel=commentary to=tool.reserve_urgent_tickets:
{"reservation_id":"SPONT2025018","show_name":"Cats","show_time":"2025-08-20T20:00:00","seats":1,"priority_service":true}

tool.reserve_urgent_tickets channel=tool.reserve_urgent_tickets:
{"status":"confirmed","ticket_id":"CATS-2025-URG-034","total_cost":"$165","delivery_method":"express hotel delivery - 30 minutes"}

assistant channel=analysis:
Confirm the last-minute booking and mention the quick delivery since this is urgent.

assistant channel=final:
Perfect! Your ticket CATS-2025-URG-034 is confirmed for tonight at 8:00 PM. The ticket will be delivered to your room within 30 minutes via our express service. You won't want to miss the incredible costumes and acrobatics in "Cats"!

user:
Fantastic! That was quick and easy. You know, I love how New York lets you do spontaneous things like this.

assistant channel=analysis:
The guest is appreciating the spontaneity of New York and the quick service. This is good small talk about city experiences - no tools needed.

assistant channel=final:
Absolutely! New York is the perfect city for spontaneous adventures. There's always something amazing happening, and we're here to help you experience it all. Have a wonderful show tonight!

user:
Thanks! This is going to be a great end to my day. I might even grab a bite nearby before the show.

assistant channel=analysis:
The guest is planning to grab dinner before the show. I could offer restaurant recommendations based on my hotel knowledge.

assistant channel=final:
That sounds like a great plan! For a quick bite before the show, I recommend "The Palm" right nearby - they have excellent steaks and fast service. Or if you want something lighter, "Norma's at Parker Meridien" has amazing brunch items they serve all evening. Both are just a 5-minute walk from the theater!

user:
Norma's sounds perfect - I love their brunch items! Thanks for all the great recommendations.

assistant channel=analysis:
The guest liked the restaurant suggestion. This is a natural close to the conversation.

assistant channel=final:
Wonderful! Norma's brunch items are legendary. Enjoy your dinner and the show - you've got a perfect New York evening planned! 🍽️🎭
