ADK 2.x Drops Need for Monkey Patch in Gemini Live Biometric Scanner Project
A developer building a biometric security scanner with the Gemini Live API removed a 187-line monkey patch file after upgrading from google-adk 1.x to version 2.6.3. The patch had been necessary because Gemini 3.1 deprecated the media_chunks field that older ADK versions used to send real-time audio and video, causing the two to be incompatible. The scanner works by streaming webcam and microphone data from a browser to a FastAPI backend via WebSocket, which then forwards the feed to Gemini 3.1 Flash Live to detect finger gestures and trigger registered tools. ADK 2.x now handles media routing natively, detecting the model generation and dispatching audio and video blobs using the correct typed keywords. The project runs locally or on Cloud Run, and both the original and updated versions are available side by side in the public repository.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in