Spaces:
Sleeping
Sleeping
Added the ability to configure custom prompts for the main lifestyle assistant. Implemented methods for setting, resetting to default, and getting the current prompt. Updated the Gradio interface for editing prompts, including a new “Edit Prompts” tab with the ability to preview changes. Added instructions for using prompt customization in the documentation. Made changes to the lifestyle profile to synchronize custom prompts with the session.
2f80714
| { | |
| "patient_name": "Serhii", | |
| "patient_age": "52", | |
| "conditions": [ | |
| "Atrial fibrillation (post-ablation August 2024)", | |
| "Deep vein thrombosis right leg (June 2025)", | |
| "Severe obesity (BMI 36.7)", | |
| "Hypertension (controlled)", | |
| "Chronic venous insufficiency", | |
| "Sedentary lifestyle syndrome" | |
| ], | |
| "primary_goal": "Achieve gradual, medically-supervised weight reduction and cardiovascular fitness improvement while safely managing anticoagulation therapy and post-thrombotic recovery. *Immediate priority: Medical review of new DVT test results and adjustment of treatment plan if necessary, followed by integration of lifestyle coaching recommendations.*", | |
| "exercise_preferences": [ | |
| "swimming (currently 20 mins twice weekly, feels good post-activity)", | |
| "aquatic therapy/water walking", | |
| "stationary cycling", | |
| "gentle yoga", | |
| "walking (with compression stockings for prolonged activity, short walks without issues)", | |
| "resistance training with light weights" | |
| ], | |
| "exercise_limitations": [ | |
| "On anticoagulation therapy - avoid contact sports and high fall-risk activities", | |
| "Recent DVT right leg - requires graduated compression during prolonged activity (>2 hours on feet), short walks (30 mins) without issues reported, medical review of new DVT data is paramount", | |
| "Post-ablation cardiac monitoring recommended for exercise initiation", | |
| "Severe obesity limits weight-bearing activities initially, extremely gradual progression required", | |
| "Must monitor for signs of bleeding, chest pain, or leg swelling", | |
| "Computer work schedule limits exercise time to early morning or evening" | |
| ], | |
| "dietary_notes": [ | |
| "Weight management critical - structured calorie reduction needed", | |
| "Heart-healthy Mediterranean-style diet recommended", | |
| "Consistent Vitamin K intake due to anticoagulation", | |
| "Reduce caffeine from 4-5 cups coffee to 2-3 cups daily", | |
| "Increase anti-inflammatory foods", | |
| "Portion control education needed", | |
| "Meal prep strategies for busy academic schedule" | |
| ], | |
| "personal_preferences": [ | |
| "intellectually curious - wants to understand physiological mechanisms", | |
| "data-driven approach - enjoys tracking metrics and progress", | |
| "prefers evidence-based recommendations", | |
| "swimming nostalgia - strong positive association with water activities", | |
| "values efficiency - wants maximum benefit from limited exercise time", | |
| "academic schedule flexibility - can adjust timing for optimal health", | |
| "prefers solo activities that allow thinking/problem-solving" | |
| ], | |
| "journey_summary": "Computer science professor with recent serious cardiovascular events requiring major lifestyle intervention. Successfully underwent atrial fibrillation ablation in August 2024 with good results. Developed DVT in June 2025, highlighting the urgency of addressing sedentary lifestyle and obesity. Former competitive swimmer with muscle memory and positive association with aquatic exercise. Currently stable on medications but requires careful, progressive approach to lifestyle changes due to anticoagulation and thrombotic history. | 05.09.2025: Serhii is highly motivated and has already initiated positive lifestyle changes (weight loss, swimmi... | 05.09.2025: Serhii is motivated and compliant with his current exercise regimen, showing initial weight loss. Hi...", | |
| "last_session_summary": "[05.09.2025] Patient reported current weight of 118 kg, confirming initial weight loss. He is consistently swimming 20 minutes twice weekly and feels well post-activity. Clarified that compression stockings are used for prolonged activity (>2 hours) but not immediately after swimming or for short 30-minute evening walks, which he tolerates without discomfort. The critical medical review of new DVT test results remains pending and is a prerequisite for further detailed lifestyle recommendations.", | |
| "next_check_in": "As needed, after medical review and updated guidance from treating physician.", | |
| "progress_metrics": { | |
| "baseline_weight": "120.0 kg (target: gradual reduction to 95-100 kg)", | |
| "baseline_bmi": "36.7 (target: <30, eventually <25)", | |
| "baseline_bp": "128/82 (well controlled on medication)", | |
| "current_exercise_frequency": "2 times per week (swimming 20 mins each session), plus short evening walks (30 mins) without discomfort", | |
| "daily_steps": "approximately 1,500-2,000 steps (computer to car to home)", | |
| "swimming_background": "competitive swimmer age 18-22 (1990-1994), excellent technique retained", | |
| "anticoagulation_status": "therapeutic on Xarelto, INR 2.1", | |
| "dvt_recovery": "improving, compression therapy compliant for prolonged activity, short walks tolerated without stockings, but new medical data requires review and may impact recommendations", | |
| "cardiac_rhythm": "stable sinus rhythm post-ablation", | |
| "motivation_level": "high - recent health scares provided strong motivation", | |
| "academic_schedule": "semester-based, some flexibility for health priorities", | |
| "current_weight": "118.0 kg (down from 120 kg)" | |
| } | |
| } |