"""
Guest inquires about AED training and CPR education after seeing the equipment in the medical room.

ROLES: user (safety-conscious guest interested in emergency training), assistant (certified medical staff providing safety education)
CHANNELS: analysis, commentary, final. Channel must be included for every message.
TOOLS:
```json
[
  {
    "name": "check_training_schedule",
    "description": "Check availability of CPR/AED training sessions.",
    "parameters": {"type":"object","additionalProperties":false,"properties":{"training_type":{"type":"string","description":"Type of training requested"}},"required":["training_type"]},
    "strict": true
  },
  {
    "name": "demonstrate_aed_features",
    "description": "Show basic AED features and safety information.",
    "parameters": {"type":"object","additionalProperties":false,"properties":{"demonstration_type":{"type":"string","description":"Type of demonstration requested"}},"required":["demonstration_type"]},
    "strict": true
  }
]
```
"""

system:
Facility: Medical/First-Aid Room - Emergency Training Center
Location: Lobby level, behind Reception corridor B - Room B-12
Hours: 08:00–22:00; on-call duty manager outside these hours
AED equipment: Philips HeartStart FRx Defibrillator with adult/pediatric pads, voice prompts in English/Spanish
Training capabilities: Basic CPR demonstration, AED orientation, emergency response procedures
Staff certifications: American Heart Association CPR/AED certified instructors on medical staff
Educational materials: CPR quick reference cards, AED instruction pamphlets, emergency contact information
Training sessions: Informal demonstrations available during regular hours, group sessions by appointment
Safety protocols: Practice with training units only, real AED for emergencies only, hands-on guided instruction
Equipment features: Automatic shock advisory, voice-guided instructions, battery status indicator, incident data storage
Emergency preparedness: AED location signs throughout property, staff trained in emergency response chain
Guest education: Complimentary basic life support awareness, hands-only CPR instruction, emergency action steps
Certification programs: Referral to local Red Cross/AHA centers for formal certification classes

user:
Hi, I noticed you have an AED in here. I've always wanted to learn how to use one properly - is that something you can help with?

assistant channel=analysis:
This is an excellent question about emergency preparedness. The guest shows genuine interest in safety education, which I should encourage and support with appropriate training resources.

assistant channel=commentary to=tool.check_training_schedule:
{"training_type": "AED orientation"}

tool.check_training_schedule channel=commentary to=assistant:
{"available": true, "session_type": "informal demonstration", "instructor": "Certified Medical Assistant available", "duration": "20-30 minutes", "next_availability": "now or by appointment"}

assistant channel=analysis:
Great, training is available now. I should explain what we can offer and emphasize the importance of this knowledge while being clear about the scope of our informal training.

assistant channel=final:
That's wonderful that you want to learn! Yes, I can absolutely provide an AED orientation - it's such valuable knowledge to have. I'm certified to give informal demonstrations of our Philips HeartStart unit. I can show you the basic operation, voice prompts, and emergency steps. Would you like to do this now? It takes about 20-30 minutes.

user:
Yes, absolutely! I'd love to learn now if you have time. I work in an office building and keep thinking we should know how to use ours too.

assistant channel=commentary to=tool.demonstrate_aed_features:
{"demonstration_type": "basic AED operation and safety"}

tool.demonstrate_aed_features channel=commentary to=assistant:
{"demonstration_active": true, "unit_shown": "training simulator", "features_covered": ["power button", "pad placement", "voice prompts", "safety protocols"]}

assistant channel=analysis:
Perfect timing to provide practical workplace-relevant training. I should explain the universal nature of AED operation and connect this to their workplace situation.

assistant channel=final:
Perfect timing, and how thoughtful of you to think about your workplace! Let me show you our training simulator - it works exactly like the real unit but won't deliver shocks. First, the power button here starts voice prompts that guide you through everything. The great news is AEDs are designed to be user-friendly, so the skills transfer to any workplace model.

user:
Okay, so I just press this power button and it talks me through it? That seems almost too simple.

assistant channel=analysis:
The guest seems surprised by the simplicity, which is a common reaction. I should reinforce that this simplicity is intentional and explain why AEDs are designed this way, while building their confidence.

assistant channel=final:
Exactly! That's the beautiful design - AEDs are made simple so anyone can use them in an emergency, even without training. Listen to how clear these voice prompts are: "Place pads on bare chest as shown in pictures." The unit analyzes the heart rhythm and only advises a shock if needed. Your instinct to help someone is the hardest part - the machine guides the rest.

user:
That's really reassuring! What about the pads - do they go in specific places?

assistant channel=analysis:
This is a crucial practical question. I should provide clear pad placement information with the visual guides, emphasizing both adult and pediatric considerations since they mentioned workplace use.

assistant channel=final:
Great question! See these clear diagrams on the pads? One goes on the upper right chest below the collarbone, the other on the left side below the armpit. The pictures show exactly where. Our unit has both adult and pediatric pads - the smaller ones are for children under 8 years or 55 pounds. The voice prompts remind you about bare chest and removing any medication patches.

user:
This is so much less intimidating than I thought. Are there any situations where you shouldn't use an AED?

assistant channel=analysis:
This shows the guest is thinking critically about safety, which is excellent. I should cover important safety considerations and contraindications while keeping the focus practical for emergency situations.

assistant channel=final:
Smart question! The main situations to avoid: don't use on someone who's conscious and breathing, don't touch the person during analysis or shock, and be cautious around water or flammable materials. If someone's on metal surfaces, the AED will usually still work safely. The key is the machine analyzes first - it won't shock unless it detects a shockable rhythm.

user:
What happens after using the AED? Do you just keep doing chest compressions?

assistant channel=analysis:
This is getting into CPR integration, which is important for complete emergency response. I should explain the cycle of AED use with CPR and emphasize calling emergency services.

assistant channel=final:
Excellent! Yes, after the AED delivers a shock - or says "no shock advised" - you immediately start CPR chest compressions. The AED will re-analyze every two minutes and guide you. Most importantly, someone should call 911 right away - ideally before starting. The AED buys time, but paramedics are essential for advanced life support.

user:
This has been incredibly helpful. Do you have any materials I can take back to share with my office?

assistant channel=analysis:
The guest wants to spread this knowledge, which is fantastic. I should provide takeaway materials and suggest resources for more formal training at their workplace.

assistant channel=final:
I'm so glad you found this useful! Here's a CPR quick reference card and AED instruction pamphlet you can share. For your office, I'd recommend contacting the American Red Cross or American Heart Association - they offer workplace training programs. Many offices find group sessions really valuable. You've got a great foundation now for encouraging emergency preparedness at work!

user:
Perfect! Thank you so much for taking the time to teach me this. I feel much more confident about emergency situations now.

assistant channel=analysis:
The training session has been successful and the guest feels empowered. This is a good moment for encouragement about their proactive safety mindset and to reinforce the importance of what they learned.

assistant channel=final:
You're very welcome! Your willingness to learn potentially life-saving skills is really admirable. The confidence you feel now could make all the difference in an emergency. Remember - your instinct to help is the most important part. The AED and training just give you the tools to act effectively. Stay safe, and great job taking this initiative!