Conversation
- Update AI system prompt for diagnostic assistance to include all diseases, specializing in Oncology (cancer) and Cardiology (heart disease). - Integrate the diagnostic assistance service into the React marketplace frontend. - Update UI descriptions and labels in both React and HTML frontends to reflect the new global health focus. - Ensure all user-facing strings in the HTML template are localized. Co-authored-by: GYFX35 <134739293+GYFX35@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the AI Diagnostic Specialist role to a global health-focused medical diagnostic assistant (emphasizing oncology and cardiology), refreshes corresponding UI copy in both the HTML and React marketplace frontends, and wires the React marketplace diagnostic service to a new backend API endpoint instead of demo mode. Sequence diagram for diagnostic service flow in React marketplacesequenceDiagram
actor User
participant ReactApp as React_App
participant AIService as aiService_api_client
participant Backend as Backend_API
participant GoogleAI as GoogleAI_provide_diagnostic_assistance
User->>ReactApp: Select service diagnostic and enter request
User->>ReactApp: Click Submit
ReactApp->>ReactApp: Determine serviceId
ReactApp->>Backend: POST /diagnostic/assistance
note over ReactApp,Backend: Uses aiService.getDiagnosticAssistance(servicePrompt)
Backend->>GoogleAI: Call provide_diagnostic_assistance(prompt)
GoogleAI-->>Backend: Diagnostic analysis response
Backend-->>ReactApp: { message: diagnostic_result }
ReactApp-->>User: Render medical diagnostic response
Updated class diagram for diagnostic assistance integrationclassDiagram
class google_ai_module {
+provide_diagnostic_assistance(prompt: str) str
}
class BackendAPI {
+post_diagnostic_assistance(prompt: string) Response
}
class aiService {
+getWeather(location: string) Promise~Response~
+getFinancialAdvice(prompt: string) Promise~Response~
+getGoogleSitesAssistance(prompt: string) Promise~Response~
+getDiagnosticAssistance(prompt: string) Promise~Response~
}
class ReactApp {
+handleServiceRequest(serviceId: string, servicePrompt: string) Promise~void~
}
google_ai_module <.. BackendAPI : uses
BackendAPI <.. aiService : calls_HTTP_API
aiService <.. ReactApp : imports
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Deploying ai-services with
|
| Latest commit: |
e9bbc8a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ef286deb.ai-services-36y.pages.dev |
| Branch Preview URL: | https://feature-integrate-global-hea.ai-services-36y.pages.dev |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider updating the diagnostic system prompt to explicitly include safety constraints (e.g., not providing definitive diagnoses, handling emergencies, and always recommending consultation with a medical professional) to reduce the risk of unsafe medical advice.
- In
aiService.getDiagnosticAssistance, double-check that the/diagnostic/assistanceroute aligns with existing backend routing conventions (e.g., other health-related endpoints) to keep API paths consistent and predictable.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider updating the diagnostic system prompt to explicitly include safety constraints (e.g., not providing definitive diagnoses, handling emergencies, and always recommending consultation with a medical professional) to reduce the risk of unsafe medical advice.
- In `aiService.getDiagnosticAssistance`, double-check that the `/diagnostic/assistance` route aligns with existing backend routing conventions (e.g., other health-related endpoints) to keep API paths consistent and predictable.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
aiservices | e9bbc8a | Mar 21 2026, 03:24 PM |
Specialized the AI Diagnostic Specialist role for global health diagnostics, covering all diseases with a primary focus on Oncology (cancer) and Cardiology (heart disease). The integration includes updates to the AI's system prompt, the React frontend API client, and UI components in both the React marketplace and the standard HTML template. Functional integration in the React app now correctly handles diagnostic service requests instead of falling back to demo mode.
PR created automatically by Jules for task 10623514858802657793 started by @GYFX35
Summary by Sourcery
Integrate and specialize the AI Diagnostic Specialist service for global health diagnostics with emphasis on oncology and cardiology, and wire it through the frontend marketplace and HTML UI.
New Features:
Enhancements: