Skip to main content

Posts

Showing posts from January, 2026

Agentic AI – with Java (Spring Boot POC)

  This project is a simple Agentic AI Proof of Concept built using Spring Boot + Spring AI + OpenRouter (LLM) . It demonstrates how an AI Agent can investigate a problem step-by-step (like a human engineer) instead of following a fixed hardcoded workflow. 🎯 What Problem Does It Solve? Given a goal like: “Why is my Order API slow?” The agent will: Check system metrics Check database performance Check Kafka lag (optional) Correlate results Find the root cause Stop automatically 🤖 What Is “Agentic AI” Here? This is NOT a chatbot . This is: A state machine where an LLM is used only to decide the next step . The LLM: Does NOT access DB Does NOT access metrics Does NOT execute anything It only says: “Check metrics” “Now check DB” “Now we are done” All real work is done by Java code (tools) . 🏗️ Architecture (Simple View) User Goal ↓ Agent Loop ↓ LLM decides next action ↓ Java executes tool (DB / Metrics / Kafka) ↓ Result stored in memory ↓ Loop again until root ...