<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hansinie Jayathilake on Medium]]></title>
        <description><![CDATA[Stories by Hansinie Jayathilake on Medium]]></description>
        <link>https://medium.com/@hansiniejayathilake?source=rss-869d7d02adf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IC-euqKvlbF_jOpi</url>
            <title>Stories by Hansinie Jayathilake on Medium</title>
            <link>https://medium.com/@hansiniejayathilake?source=rss-869d7d02adf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:53:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hansiniejayathilake/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Let’s Embrace Agents for Decision-Making on Neighborhood Safety: In the Shoes of a Software…]]></title>
            <link>https://medium.com/@hansiniejayathilake/lets-embrace-agents-for-software-development-in-the-shoes-of-a-software-developer-95831b6a1949?source=rss-869d7d02adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/95831b6a1949</guid>
            <category><![CDATA[gemini-2-flash]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[safety]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Hansinie Jayathilake]]></dc:creator>
            <pubDate>Sun, 20 Apr 2025 20:13:44 GMT</pubDate>
            <atom:updated>2025-04-21T14:37:21.659Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let’s Embrace Agents for Decision-Making on <em>Neighborhood Safety:</em> In the Shoes of a Software Developer…</h3><p>Thanks to the 5-Day Gen AI Intensive Course with Google I was privileged to learn the cutting-edge technology of Agentic AI and how we can develop Agentic AI applications by utilizing the capabilities of Generative AI, particularly with large language models (LLMs) and learn the insights from Google experts. In this blog, I’m hoping to provide some insightful observations I got by piloting an Agentic AI chatbot development using Gemini 2.0 flash model for the implementation of the <em>Neighborhood Safety Advisor </em>as a part of the capstone project I did.</p><h3>Backstory of the Use Case</h3><p>I’m a person who always believes in <strong><em>safety first approach</em></strong>. This drives me in every aspect of decision-making in my life including professional and personal choices. When I first moved to the United States for my studies, all the way from Sri Lanka, I wanted to look for safe places around my university as I&#39;m not familiar with the location and wanted to know the information about crimes associated with the place. Retrieving information and getting advice from people in that area was challenging since I hardly knew anyone there, where I chose to live. Therefore, it was quite a tedious task to get information in one place since I had to search the internet, look at the news reports for crime incidents, and check the places around the location or the new address. I believe this problem resonates well with anyone who is going to relocate to a new place to live or even plan travels for leisure.</p><h3>So what is my solution?</h3><p>I thought of piloting a chatbot for a neighborhood safety advisor that could answer the safety-critical user queries for locations and allow me to have a friendly conversation in a natural language in one place. Since going to different news portals for crime news and locating neighborhood places around a specific location of search are tedious tasks for me, I decided to delegate those tasks to agents in my app. Therefore, I utilized the Agentic AI app design with Generative AI, which is the <em>buzzword</em> in the tech field right now. I piloted my app using the following architectural design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*ZFRXEhvgCL_1F7pnz9PJJg.png" /><figcaption>High-level Architecture of the Neighborhood Safety Advisor</figcaption></figure><h3>What are the Generative AI capabilities that are unique to this app?</h3><blockquote><strong>Controlled and structured Response Generation of the Chatbot</strong></blockquote><p>I designed the app to respond only to safety-related queries and be sensitive to user queries in the given context, as it is a dedicated app for giving neighborhood safety advice, including the latest reported crimes and recommendations on actions and precautions to consider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LdzzzyBcknDgbEl9dU4WAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0b0XsZi-tk-Z5EgMjvLDNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jS_pQzylX0KdQBnDUxPT4A.png" /></figure><blockquote><strong>Function Calls</strong></blockquote><p>We all know that LLMs are pre-trained on data at a certain date, and they do not get updated with the latest information until the next training session for the next version release. Then, function calls come in handy to extend the capabilities of LLMs to provide up-to-date information and possibly develop different agents to handle these tasks. In my pilot scenario, I utilized <strong><em>three function calls</em></strong> in the tools of my agent design as follows.</p><ol><li>Function to retrieve geolocation coordinates for a specific location identified from the user query, by connecting to the Google Geocoding API externally.</li><li>Function to search neighborhood places and related information from the Google Places API based on the retrieved location coordinates above.</li><li>Function to retrieve crime-related news content based on a custom search query that integrates with data from Google Custom Search API.</li></ol><blockquote><strong>Agents</strong></blockquote><p><em>What is interesting </em>here is that the agent orchestrator manages all the tasks/agents in the tools, such as retrieving the location from the user query, sending that location to the Geocoding API to obtain coordinates, forwarding those coordinates to the Places API, providing information about those places to develop a custom query on behalf of the user based on the main context or goal of the user, and sending the tailored response back to the user. The runtime agentic behavior of this pilot app surprised me with the first few prompts.<em> I am really grateful for my agents…</em></p><h3><strong>The future is endless..</strong></h3><p>This pilot study shows how to unveil the power of LLMs to the external world through agents and even how they can communicate with each other to achieve a certain goal. This led me to think of how to improve the safety of the agent communication and ensure safe human-AI collaboration when interacting with agentic apps. I was mainly focused on learning how to build the backend of the agentic app in my pilot use case. Extending this with beautiful chat interfaces is future work. I think leveraging other capabilities, such as RAG (retrieval Augmented Generation), document understanding, etc, will enhance the agentic response and its workflow. I’m looking forward to doing much more with my beloved LLM agents in a safer manner by preserving the human agency in decision-making<strong><em>. Let’s celebrate my first tiny step towards the safer agentic era……</em></strong></p><p>Link to Kaggle Notebook: <a href="https://www.kaggle.com/code/hansinie/capstoneproject-neighborhood-safety-advisor">https://www.kaggle.com/code/hansinie/capstoneproject-neighborhood-safety-advisor</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95831b6a1949" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>