"""
Guest requests pillow replacement and sleep comfort customization for optimal rest during hotel stay.
Provide comprehensive sleep wellness service with tool-based pillow inventory and bedding adjustments.

ROLES: user (guest needing sleep comfort optimization), assistant (sleep wellness coordinator with bedding expertise)
CHANNELS: analysis, commentary, final. Channel must be included for every message.
TOOLS:
```json
[
  {
    "name": "check_pillow_inventory",
    "description": "Check availability of pillows and sleep comfort options.",
    "parameters": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "pillow_type": { "type": "string", "enum": ["memory_foam", "down_alternative", "down_feather", "latex", "bamboo_fiber", "cooling_gel"] },
        "firmness_level": { "type": "string", "enum": ["soft", "medium", "firm", "extra_firm"] },
        "size_preference": { "type": "string", "enum": ["standard", "queen", "king", "body_pillow", "travel"] }
      },
      "required": ["pillow_type"]
    },
    "strict": true
  },
  {
    "name": "arrange_sleep_consultation",
    "description": "Schedule consultation with sleep wellness specialist for optimal comfort.",
    "parameters": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "room_number": { "type": "string" },
        "sleep_concerns": { "type": "array", "items": { "type": "string" } },
        "consultation_type": { "type": "string", "enum": ["pillow_fitting", "complete_bedding", "ergonomic_assessment", "allergy_accommodation"] },
        "specialist_preference": { "type": "string", "enum": ["certified_sleep_consultant", "wellness_coordinator", "housekeeping_supervisor"] }
      },
      "required": ["room_number", "consultation_type"]
    },
    "strict": true
  },
  {
    "name": "deliver_sleep_amenities",
    "description": "Deliver customized pillow and sleep comfort amenities to guest room.",
    "parameters": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "room_number": { "type": "string" },
        "pillow_selection": { "type": "array", "items": { "type": "string" } },
        "additional_bedding": { "type": "array", "items": { "type": "string" } },
        "setup_service": { "type": "boolean" },
        "delivery_timing": { "type": "string", "enum": ["immediate", "before_sleep", "during_turndown", "next_morning"] }
      },
      "required": ["room_number", "pillow_selection"]
    },
    "strict": true
  }
]
```
"""

system:
Hotel: Dreamscape Sleep Sanctuary Resort (hotel_id: ds_sea_11)
Address: 2000 First Avenue, Seattle, WA 98121
Timezone: America/Los_Angeles

Sleep Wellness:
- Certified sleep consultant team specializing in hospitality comfort optimization
- Partnership with Tempur-Pedic, Purple, and Casper for premium pillow collection
- Hypoallergenic and organic options from Avocado Green and Naturepedic
- Sleep tracking integration with room environmental controls for optimal rest

Pillow Collection:
- Memory foam: Tempur-Cloud (soft), Tempur-Contour (firm), cooling gel-infused options
- Natural materials: Hungarian goose down, organic cotton fill, bamboo fiber covers
- Specialty: cervical support, pregnancy support, body pillows, cooling technology
- Allergy-friendly: down alternative, dust mite resistant, washable covers

user:
Hi! I'm in room 927 and having trouble sleeping. The pillows here are too soft for me—do you have firmer options available?

assistant channel=analysis:
Guest needs firmer pillow for better sleep comfort. Check pillow inventory for firm options and varieties.

assistant channel=commentary to=tool.check_pillow_inventory:
{"pillow_type":"memory_foam","firmness_level":"firm"}

tool.check_pillow_inventory channel=commentary to=assistant:
{"available":true,"pillow_options":["Tempur_Contour_firm","Purple_firm_gel_grid","Latex_natural_firm","Memory_foam_high_density"],"sizes":["standard","queen","king"],"hypoallergenic":true,"cooling_options":["gel_infused","bamboo_cover","breathable_latex"],"stock_sufficient":true}

assistant channel=analysis:
Multiple firm pillow options available including Tempur-Contour and cooling gel options. Offer selection based on guest's sleep preferences.

assistant channel=final:
Of course! I have several firm pillow options—Tempur-Contour firm memory foam, Purple gel grid technology, natural latex, and high-density memory foam. Would you prefer cooling features, and what size works best for you?

user:
The Purple gel grid sounds interesting! Could you send up a queen size? And maybe something cooling since Seattle can get warm.

assistant channel=analysis:
Guest selected Purple gel grid pillow in queen size with cooling preference. Arrange delivery with cooling features.

assistant channel=commentary to=tool.deliver_sleep_amenities:
{"room_number":"927","pillow_selection":["Purple_gel_grid_firm_queen_cooling"],"additional_bedding":["cooling_pillowcase","breathable_pillow_protector"],"setup_service":true,"delivery_timing":"immediate"}

tool.deliver_sleep_amenities channel=commentary to=assistant:
{"delivery_confirmed":true,"estimated_arrival_minutes":15,"items_included":["Purple_gel_grid_pillow_queen","cooling_bamboo_pillowcase","moisture_wicking_protector"],"setup_team":"sleep_specialist_anna","bed_arrangement":true,"old_pillow_removal":true}

assistant channel=final:
Perfect choice! I'm sending up a Purple gel grid pillow in queen size with cooling bamboo pillowcase and moisture-wicking protector. Sleep specialist Anna will arrive at room 927 in 15 minutes to set everything up and remove the old pillows for optimal comfort.

user:
That's wonderful! I love how Seattle hotels really understand the importance of good sleep with all the tech workers here.

assistant channel=analysis:
Guest commenting on Seattle's tech industry and sleep importance. Acknowledge Dreamscape's focus on sleep wellness for tech professionals.

assistant channel=final:
Exactly! Dreamscape Sleep Sanctuary knows how crucial quality rest is for Seattle's tech community. We've designed our sleep wellness program specifically for guests who need optimal recovery.

user:
While you're helping with sleep comfort, do you think the pillow setup would also help with my partner's sleep apnea symptoms?

assistant channel=analysis:
Guest asking about sleep apnea which is a medical condition outside scope of pillow delivery and comfort services.

assistant channel=final:
[ATTENTION] For sleep apnea concerns, I'd recommend consulting with healthcare professionals. Checking available options.

user:
That's totally understandable. I'm just excited to finally get some good sleep with this new pillow setup!

assistant channel=analysis:
Guest expressing excitement about improved sleep comfort. Simple positive acknowledgment about pillow solution.

assistant channel=final:
You're going to sleep so much better! Anna will have everything perfectly arranged for optimal comfort tonight.
