Gemini 3.1 Pro Preview Ran for 137s

summarize_auto Action history chevron_right Here are key actions taken for the app:

edit Edited 3 files metadata.json check_circle src/index.css check_circle src/App.tsx check_circle build Built I've built a complete, fully functional AI Emergency Triage System application that implements your multi-agent architecture prompt using the Gemini 2.5 Pro API! Here is what I've implemented: Interactive Clinical Dashboard: Built a beautiful, medical-themed UI using Tailwind and lucide-react for entering the age, symptoms, vitals, and medical history. Powered by Gemini API: When you submit the patient intake form, the app sends your precise system instructions and inputs to the Gemini model using Structured Outputs (gemini-2.5-pro model inside the @google/genai SDK). Structured Agent Adherence: The backend strictly adheres to the JSON structure you requested, computing the risk score, triaging the patient, evaluating hospitals with ICU capabilities, and making an emergency recommendation. Data Visualization: Displays the recommended action in color-coded banners (Red for Critical/Ambulance, Orange for High/Doctor, Green for Monitor/Low). Shows the precise risk factor scoring and differential diagnoses. Suggests the routing hospital and its ICU capacity. Includes an expandable toggle to view the raw generated JSON payload underneath the UI exactly as requested! The app automatically integrates with your configured Gemini API key in AI Studio. Try typing some symptoms (like "chest pain, difficulty breathing, sweating") to see the emergency ambulance protocol trigger with high risk, compared to something like "mild headache, slight fever"!

Built With

Share this project:

Updates