Hey everyone! π I just wrapped up an intense 3-hour solo sprint for the latest GDG Pune hackathon. The challenge was to build an agentic AI system that acts as a virtual IPL captain.
Instead of building a generic chatbot that just spits out statistics, I wanted to build something that models the human element of the game. Enter Cric-Oracle Proβa live, multi-agent war room.
π§ The Architecture: Going Beyond the Math
Cricket isn't just played on the pitch; it's played in the mind. To replicate a real IPL captain's thought process, I orchestrated a multi-turn reasoning loop using three distinct AI agents powered by Gemini 3.1 Flash-Lite:
π The Data Analyst: Handles the raw math, required run rates, and historical batter-vs.-bowler match-ups.
π₯ The Momentum Architect: The secret sauce of the app. This agent ignores stats completely and analyzes the "Choke Factor," the fear metric, and the psychological momentum of the crowd.
π The Captain: Synthesizes the quantitative data and the psychological audit to issue one definitive, bold tactical mandate for the next over.
π οΈ The Tech Stack
Since the rules strictly required the Google ecosystem, I built the entire backend natively:
AI Orchestration: gemini-3.1-flash-lite via the modern google-genai Python SDK.
Backend: FastAPI for asynchronous, high-speed agent routing.
Frontend: Pure HTML & Tailwind CSS. I ditched basic UI frameworks to build a custom, glassmorphism "cyber-broadcast" layout that looks like a premium enterprise sports tool.
Live Radar: A custom Python scraping tool that feeds real-time live match data directly into the Gemini context window.
π The Result
The system doesn't just say "Bowl a spinner." It says, "The required rate has breached 12. The batter is desperate, and the crowd is silent. Bring mid-off inside the circle to cut off the single, suffocate the strike, and force a panicked shot over the top."
It was an incredible experience pushing the boundaries of Gemini's multi-agent capabilities under a strict time limit. Huge shoutout to the community for hosting this!
Top comments (0)