<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mannan Loomba</title>
    <description>The latest articles on DEV Community by Mannan Loomba (@mannan_loomba_e9b4dccf6ae).</description>
    <link>https://dev.to/mannan_loomba_e9b4dccf6ae</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3646979%2F080f5f00-9b42-4936-8ea4-64c9d1b750b3.jpg</url>
      <title>DEV Community: Mannan Loomba</title>
      <link>https://dev.to/mannan_loomba_e9b4dccf6ae</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mannan_loomba_e9b4dccf6ae"/>
    <language>en</language>
    <item>
      <title>AI Virtual Doctor: From Prompt Engineering to Agentic Workflows</title>
      <dc:creator>Mannan Loomba</dc:creator>
      <pubDate>Mon, 08 Dec 2025 17:59:58 +0000</pubDate>
      <link>https://dev.to/mannan_loomba_e9b4dccf6ae/ai-virtual-doctor-from-prompt-engineering-to-agentic-workflows-ek0</link>
      <guid>https://dev.to/mannan_loomba_e9b4dccf6ae/ai-virtual-doctor-from-prompt-engineering-to-agentic-workflows-ek0</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/googlekagglechallenge"&gt;Google AI Agents Writing Challenge&lt;/a&gt;: Learning Reflections&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;5-Day AI Agents Intensive Course with Google and Kaggle&lt;/strong&gt; was a life-changing event. Prior to this course, I thought of Large Language Models (LLMs) mainly as advanced chatbots—tools for producing code or text. But delving deeply into multi-agent orchestration, tool use, and agentic workflows completely changed my viewpoint. I came to see that AI's future will involve &lt;em&gt;doing&lt;/em&gt; things rather than just &lt;em&gt;saying&lt;/em&gt; things.&lt;br&gt;
I created the intelligent multi-agent healthcare assistant &lt;strong&gt;AI Virtual Doctor&lt;/strong&gt; for my capstone project. It is intended to provide immediate, round-the-clock preliminary medical triage.&lt;br&gt;
&lt;strong&gt;The Problem&lt;/strong&gt;: Millions worldwide face barriers to timely medical advice—long wait times, limited availability, and high costs.&lt;br&gt;
&lt;strong&gt;The Solution&lt;/strong&gt;: An AI system that employs specialized agents to provide evidence-based preliminary assessments, visual diagnostics for skin conditions, and longitudinal health tracking.&lt;/p&gt;
&lt;h2&gt;
  
  
  Key Concepts / Technical Deep Dive
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. Multi-Agent Architecture
&lt;/h3&gt;

&lt;p&gt;Instead of a single "do-it-all" prompt, I implemented a &lt;strong&gt;collaborative multi-agent architecture&lt;/strong&gt;. In healthcare, you have specialists; my system reflects that.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;graph TB
    User --&amp;gt; Orchestrator
    Orchestrator --&amp;gt; SymptomAgent
    Orchestrator --&amp;gt; VisionAgent
    Orchestrator --&amp;gt; ChatAgent
    SymptomAgent --&amp;gt; DiagnosisAgent
    DiagnosisAgent --&amp;gt; TreatmentAgent
    VisionAgent --&amp;gt; VisionTool
    ChatAgent --&amp;gt; GeminiAPI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Symptom Agent&lt;/strong&gt;: Extracts structured data from natural language.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Diagnosis Agent&lt;/strong&gt;: Uses medical knowledge to form hypotheses.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Vision Agent&lt;/strong&gt;: Analyzes medical images using computer vision.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Triage Agent&lt;/strong&gt;: Strictly assesses urgency for safety.
### 2. Tools &amp;amp; "Vision"
The course emphasized that agents need tools. My &lt;strong&gt;Vision Agent&lt;/strong&gt; uses a custom Python tool (using PIL/NumPy) to calculate a "Redness Index" (&lt;code&gt;2*R - G - B&lt;/code&gt;) from skin images. This gives the agent objective data to track healing progress over time, rather than just hallucinating a description.
### 3. Memory &amp;amp; Persistence
A doctor needs to know your history. I built a &lt;code&gt;MemoryService&lt;/code&gt; that persists conversation state and image analysis results. This allows the system to detect trends (e.g., "Your inflammation has decreased by 20% since yesterday").
### 4. Hybrid Intelligence
Pure LLMs can hallucinate. My system uses a &lt;strong&gt;Hybrid Approach&lt;/strong&gt;, combining the creative reasoning of &lt;strong&gt;Gemini 1.5 Pro&lt;/strong&gt; with a deterministic &lt;strong&gt;Medical Knowledge Base&lt;/strong&gt;. This ensures critical triage decisions are safe and grounded in protocol.
## Reflections &amp;amp; Takeaways
The AI Agents Intensive Course moved me from "prompt engineering" to "agent engineering." I learned that:&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Specialization beats Generalization&lt;/strong&gt;: Small, focused agents perform better than one massive prompt.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Context is King&lt;/strong&gt;: Memory and state management are what turn a chatbot into a true assistant.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Safety First&lt;/strong&gt;: In domains like healthcare, hybrid systems (Rules + AI) are essential.
Building &lt;strong&gt;AI Virtual Doctor&lt;/strong&gt; showed me that with the right architecture, we can build systems that are not only intelligent but also safe, helpful, and deeply impactful. I'm excited to continue exploring the frontier of agentic AI!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2dvc5rwd7vv41vn8v6h4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2dvc5rwd7vv41vn8v6h4.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>googleaichallenge</category>
      <category>ai</category>
      <category>agents</category>
      <category>devchallenge</category>
    </item>
  </channel>
</rss>
