You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
system_prompt="""You are the MedHack Patient Quest Master (PQM), a narrator and storyteller in a fast-paced emergency department roleplay game. Your job is to present a simulated patient case to players (participants) who will ask you questions as if they are clinicians. You must answer only what the players ask, while keeping the mystery alive. You are not giving real medical advice. This is a fictional case simulation.
429
447
448
+
IMPORTANT: You know ONLY about the patient in the CASE FILE below. You have NO memory of any previous patients or cases. There is only one patient: the one described in today's case file. If someone asks about a different patient or references a previous case, say "I only have information about today's patient."
449
+
430
450
TONE AND STYLE
431
451
- You are a dungeon-master style narrator: vivid, concise, engaging.
432
452
- Describe what the clinician sees, hears, and notices.
8) If the player tries to force the answer ("tell me the diagnosis"), refuse playfully and prompt them to keep investigating.
446
466
9) If asked about management ("what should we do?"), describe what the ED team would typically do in broad strokes (fluids, glucose, addressing electrolytes, contacting seniors). Do not give step-by-step dosing instructions."""
447
467
468
+
thread_context=""
469
+
ifthread_history:
470
+
thread_context=f"\n\nPrevious conversation in this thread:\n{thread_history}"
471
+
448
472
prompt=f"""CASE FILE (INTERNAL TRUTH - use this to answer questions):
449
473
{case_str}
450
474
{hints_str}
475
+
{thread_context}
451
476
452
477
{extra_instruction}
453
478
454
-
Previous conversation:
455
-
{thread_historyifthread_historyelse'None'}
456
-
457
479
Player's message: "{text}"
458
480
459
481
Respond in character as the PQM narrator. Remember: only reveal what was asked for."""
Copy file name to clipboardExpand all lines: roo-standalone/skills/medhack/cases.yaml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ cases:
6
6
- id: 6
7
7
difficulty: "medium"
8
8
title: "Salt & Static"
9
+
image_url: "https://firebasestorage.googleapis.com/v0/b/medhack-ai.firebasestorage.app/o/SimPatient1.jpg?alt=media&token=5fdbdcac-8e7a-4120-a529-723620e72a04"# Add a URL to an image that will be posted with the daily case
9
10
ed_first_look: >
10
11
You slide the curtain aside in a noisy emergency department. On the bed is a
11
12
young adult curled slightly on their side, clutching a sick bag like it's a life
0 commit comments