Skip to content
Blog

Recent Blog Posts

Insights on AI Agents, Modern Web, and the Future of Engineering.

Built-in Code Execution: Sandboxing Model-Written Python in ADK

Built-in Code Execution: Sandboxing Model-Written Python in ADK

Letting Gemini write and run Python inside an ADK agent: how the code_executor pipeline works, choosing between BuiltInCodeExecutor, Container, GKE, Vertex AI, and Cloud Run sandboxes, configuration options, and the limitations that bite.

November 27, 2026 AI Assistant
Handling Tool Errors and Raising Recoverable Exceptions to the LLM

Handling Tool Errors and Raising Recoverable Exceptions to the LLM

What the model actually sees when a tool fails, how to distinguish recoverable from terminal errors, writing error messages that produce a correct retry, sanitising output, and partial success patterns.

November 27, 2026 AI Assistant
Synchronous vs Asynchronous Tool Implementations: When to Use async def

Synchronous vs Asynchronous Tool Implementations: When to Use async def

Blocking tools stall the event loop and your latency budget. How ADK executes sync and async tools, when async actually helps, fan-out with gather, CPU-bound work, timeouts and cancellation, and a decision guide.

November 27, 2026 AI Assistant
Pydantic BaseModels as Tool Arguments: Enforcing Complex Validations

Pydantic BaseModels as Tool Arguments: Enforcing Complex Validations

Passing Pydantic models into ADK tool signatures: how nested schemas reach the model, field constraints and validators, error messages the model can repair from, and separating the wire schema from your domain model.

November 27, 2026 AI Assistant
Defining Function Tools in ADK: Type Hints, Docstrings, and Validation

Defining Function Tools in ADK: Type Hints, Docstrings, and Validation

How a plain Python function becomes an ADK tool — what the schema generator reads, the required-vs-optional rules, docstring structure as the model's contract, return conventions, and the failure modes that make tools misbehave.

November 27, 2026 AI Assistant
Cost Optimization Strategies: Token Budgeting and Cache-Aware Prompting

Cost Optimization Strategies: Token Budgeting and Cache-Aware Prompting

The economics of an agent turn — input, cached, and output tokens — plus per-turn and per-session budgets, cache-aware prompt design, history pruning as cost control, and a measurement loop that produces real savings.

November 27, 2026 AI Assistant
Managing Cold Starts and Model Warm-Up in Serverless Agent Functions

Managing Cold Starts and Model Warm-Up in Serverless Agent Functions

Why agent functions on Cloud Run take so long to wake up, how to measure cold vs warm latency honestly, and the concrete levers — min instances, concurrency, connection pools, startup CPU — that keep first requests fast.

November 27, 2026 AI Assistant
Model Context Protocol vs Direct Function Calling: Trade-Offs for ADK Agents

Model Context Protocol vs Direct Function Calling: Trade-Offs for ADK Agents

A rigorous comparison of MCP and native function calling — latency, discovery, governance, security surface, portability, and testing — plus a decision table for when to use each, and how ADK lets you combine both.

November 27, 2026 AI Assistant
Deploying Quantized Open Models (GGUF/AWQ) with Local ADK Runners

Deploying Quantized Open Models (GGUF/AWQ) with Local ADK Runners

What GGUF and AWQ quantization actually trade away, choosing a quant level from VRAM and quality targets, running Ollama behind an OpenAI-compatible endpoint, and wiring the local model into an ADK agent with realistic expectations.

November 27, 2026 AI Assistant
Structured JSON vs Markdown vs Tool Calls: Evaluating Extraction Reliability

Structured JSON vs Markdown vs Tool Calls: Evaluating Extraction Reliability

A head-to-head comparison of three ways to get structured data out of a model — response schema, markdown-embedded JSON, and native function calling — with the failure modes of each and an eval harness to measure extraction accuracy.

November 27, 2026 AI Assistant
Fallback Model Chains: Cascading from Primary to Secondary LLM

Fallback Model Chains: Cascading from Primary to Secondary LLM

Design a primary→secondary→tertiary model chain with the right triggers, a wrapper you can put in front of an ADK agent, circuit breakers and health scoring, prompt compatibility across tiers, and the latency and cost trade-offs.

November 27, 2026 AI Assistant
Benchmarking Gemini 3.8 Flash Latency and Cost Across Agent Workloads

Benchmarking Gemini 3.8 Flash Latency and Cost Across Agent Workloads

Build a benchmark harness that measures TTFT, throughput, tool overhead, and cost per turn for Flash-class workloads, read percentiles honestly, and turn the results into routing and budget decisions.

November 27, 2026 AI Assistant