<?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: Madhumitha R</title>
    <description>The latest articles on DEV Community by Madhumitha R (@madhumitha_r_a284a9d152cb).</description>
    <link>https://dev.to/madhumitha_r_a284a9d152cb</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2741594%2F02316723-e6f9-4377-a0f4-3824d580d69e.png</url>
      <title>DEV Community: Madhumitha R</title>
      <link>https://dev.to/madhumitha_r_a284a9d152cb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/madhumitha_r_a284a9d152cb"/>
    <language>en</language>
    <item>
      <title>How I Built RescuRoute AI</title>
      <dc:creator>Madhumitha R</dc:creator>
      <pubDate>Mon, 31 Aug 2026 08:29:35 +0000</pubDate>
      <link>https://dev.to/madhumitha_r_a284a9d152cb/how-i-built-rescuroute-ai-2ib5</link>
      <guid>https://dev.to/madhumitha_r_a284a9d152cb/how-i-built-rescuroute-ai-2ib5</guid>
      <description>&lt;h1&gt;
  
  
  RescuRoute AI
&lt;/h1&gt;

&lt;p&gt;I created &lt;strong&gt;RescuRoute AI for this hackathon&lt;/strong&gt; to explore how agentic AI can help rescue perishable shipments when route disruptions and temperature failures threaten delivery.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Perishable shipments can become difficult to save when unexpected route incidents or refrigeration failures increase delivery time and reduce remaining shelf life.&lt;/p&gt;

&lt;p&gt;The goal of RescuRoute AI is to continuously evaluate the shipment situation and recommend the best available action instead of simply following a fixed route.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;RescuRoute AI uses an event-driven architecture built with Google Cloud and Google ADK.&lt;/p&gt;

&lt;p&gt;The workflow is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shipment Event → Google Pub/Sub → Cloud Run → RescuRoute Agent → Decision Tools → Rescue Decision → Firestore&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The agent uses &lt;strong&gt;Google ADK and Gemini&lt;/strong&gt; for reasoning and orchestration. Gemini does not perform the deterministic route calculation or spoilage calculation itself. Instead, the agent reasons over structured evidence produced by specialized deterministic tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision Intelligence
&lt;/h2&gt;

&lt;p&gt;The system evaluates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Route travel time and incident delays&lt;/li&gt;
&lt;li&gt;Remaining product shelf life&lt;/li&gt;
&lt;li&gt;Temperature abuse and spoilage risk&lt;/li&gt;
&lt;li&gt;Alternate route feasibility&lt;/li&gt;
&lt;li&gt;Nearby buyer options when delivery is no longer viable&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The decision can change as conditions worsen.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Normal conditions → MONITOR&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Critical temperature + viable alternate route → REROUTE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No safe route within remaining shelf life → COMMERCIAL_RESCUE&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Cloud Deployment
&lt;/h2&gt;

&lt;p&gt;The production workflow is deployed using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google Pub/Sub for event delivery&lt;/li&gt;
&lt;li&gt;Google Cloud Run for the HTTP processing endpoint&lt;/li&gt;
&lt;li&gt;Firestore for persistent rescue decisions and audit records&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The deployed Cloud Run service successfully received an HTTP &lt;strong&gt;200&lt;/strong&gt; request during validation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing
&lt;/h2&gt;

&lt;p&gt;The project includes automated unit tests covering the agent workflow, route logic, spoilage logic, buyer evaluation, rescue decisions, and persistence.&lt;/p&gt;

&lt;p&gt;The final test run completed with:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;46 passed&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Demonstrated
&lt;/h2&gt;

&lt;p&gt;The final demo shows the complete flow from a shipment event to an intelligent rescue decision, including:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Normal shipment monitoring&lt;/li&gt;
&lt;li&gt;Route incident handling&lt;/li&gt;
&lt;li&gt;Critical temperature/spoilage risk&lt;/li&gt;
&lt;li&gt;Automatic rerouting&lt;/li&gt;
&lt;li&gt;Commercial rescue when routing is no longer safe&lt;/li&gt;
&lt;li&gt;Cloud Run deployment&lt;/li&gt;
&lt;li&gt;Firestore persistence&lt;/li&gt;
&lt;li&gt;Automated test validation&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;RescuRoute AI demonstrates an end-to-end agentic workflow for making time-sensitive logistics rescue decisions using structured evidence, Google ADK, Gemini, and Google Cloud.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This project was created specifically for this hackathon.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Project Repository
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/madhu-17-SE/rescuroute-ai" rel="noopener noreferrer"&gt;https://github.com/madhu-17-SE/rescuroute-ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
    </item>
  </channel>
</rss>
