A Risk-Tiered Approval Gate for Gemini Function Calling
Handing full autonomy to an agent is unnerving. This walks through a Gemini function-calling loop that routes tool calls into auto-run and hold-for-approval by risk tier, then feeds the result back to the model after a human signs off.
When Your Gemini Agent Has Three Tool Routes and Quietly Picks the Wrong One
Put Function Calling, Code Execution, and Grounding into one agent and the model will sometimes choose the wrong route, while the output still looks perfectly plausible. Here is how I instrument route selection and correct it with phase separation and verification gates, with working code.
Stopping Gemini API Function Calling Loops: Why They Happen and How to Break Them
Your tool-calling agent keeps invoking the same function and never finishes. Here is how to diagnose the loop and bake stop conditions into your prompt, code, and tool responses — including catching regressions when the default model changes and detecting result-based stalls.
Restarting a Long Agent Run From Where It Broke — A Step-Ledger Design for Gemini 3.5 Flash Long-Horizon Tasks
Gemini 3.5 Flash is good at long-horizon tasks, but when a 40-step run dies on step 29, you usually start over. An append-only step ledger gives you resume, idempotency, and audit in one place. Here is the design with working Python and measured results.
A Personal Secretary AI on Gemini API and Google Workspace — Auth, Orchestration, and Approval Gates
Designing a personal secretary AI across Gmail and Google Calendar with the Gemini API: OAuth2 scope design, Function Calling orchestration, approval gates for write tools, and ninety days of measured production cost, with full Python code.
Building Stateful AI Agents with Gemini API and Cloudflare Durable Objects — A
A complete production guide to building a stateful AI agent that remembers conversation history, using Cloudflare Durable Objects, WebSocket Hibernation, and the Gemini API streaming endpoint.
Building Self-Critiquing Agents with Gemini API: A Production-Ready Guide to Reflection and Critic-Refiner Patterns
A production-grade walkthrough of Reflection and Critic-Refiner patterns with Gemini 3 Pro and 2.5 Flash. Covers implementation, cost guards, over-correction defenses, and monitoring signals from real deployments.
Building Agentic Systems with Gemma 4: Mastering Function Calling
A practical guide to implementing Function Calling with Gemma 4 for building reliable agentic systems. Learn how Gemma 4 differs from other open models, structured JSON output, and system prompt optimization with code examples.
Building RAG Agents with Gemini × LlamaIndex — From Document Search to Multi-Step Reasoning
A hands-on guide to building high-accuracy RAG agents with Gemini API and LlamaIndex — covering index construction and agent design, plus measured chunk-size comparisons, a full hybrid-search implementation, and a retrieval evaluation loop.
Building an Autonomous Data Analysis Agent with Gemini 3 Pro and LangGraph
Learn how to build a multi-step data analysis agent that autonomously handles CSV parsing, visualization, and report generation using Gemini 3 Pro and LangGraph, with complete code examples.
Build an AI Data Analysis Agent with Gemini API — Combining Code Execution, Function Calling, and Structured Output
Learn how to build a production-ready AI data analysis agent in Python that combines Gemini API's Code Execution, Function Calling, and Structured Output to automatically analyze CSV/Excel data, generate visualizations, and produce structured reports.