Blog Archive
Running ADK Headless: CLI Streaming and Non-Interactive Batch Modes
Run Google ADK with no browser: adk run one-shot queries, --replay batch files, --jsonl output, CI timeouts, and token-level SSE through the adk api_server /run_sse endpoint.
Exploring the ADK Developer Web UI: Local Inspection, Chat, and Graph Visualizer
Start adk web, chat with your agent, inspect sessions, state, and events, and use the agent structure graph view — with ports, flags, storage defaults, and telemetry.
Configuring Environment Variables and Secret Handling in ADK Projects
A practical guide to .env variables in ADK and agents-cli projects: GEMINI_API_KEY vs GOOGLE_* Vertex settings, ADC auth, deploy-time secrets, and telemetry flags.
ADK Versioning and Roadmap: Migrating from ADK 1.x to ADK 2.0
ADK 2.0 GA dates, the Workflow Runtime breaking changes, and a concrete migration path from google-adk 1.x — event schema, BaseNode, retries, and version pinning.
Managing Agent Identity and Persona Constraints in ADK
How ADK's LlmAgent name, description, instruction, and schema fields define agent identity, persona, and hard behavioral constraints — and where each boundary sits.
Configuring System Instructions: Dynamic Prompt Templating with State Injection
Learn how ADK's LlmAgent instruction templating injects session state with {key} syntax, when to use {key?} and InstructionProvider, and how to update state safely.
Building Non-LLM Base Agents: Deterministic Rules and Custom BaseAgent Subclasses
Not every agent needs a model. Subclass BaseAgent, implement _run_async_impl, and ship deterministic validators, escalators, and guards that run without a single LLM call.
Synchronous vs Asynchronous Agent Execution with Runner.run and Runner.run_async
Runner.run_async is ADK's primary entry point; Runner.run is a sync convenience backed by a background thread. Learn the exact signatures, internals, and when each fits.
The Role of RunConfig in Controlling Agent Execution and Modalities
RunConfig decides how every ADK run behaves — streaming mode, speech and response modalities, context loading, LLM call caps, and live-agent knobs. Here is how to set each one.
ADK Event Loop Deep Dive: How Events, Actions, and State Transitions Flow
A guided tour of ADK's event loop: how the Runner and your agents trade Events, when state_delta commits, why dirty reads happen, and how partial streaming events work.
Project Scaffolding Best Practices: Structuring Modular ADK Applications
Scaffold modular ADK projects with agents-cli: pick adk create or the full app/tests layout, keep root_agent importable, and wire evals, manifest, and env from day one.
Understanding the ADK Anatomy: Agents, Runners, Sessions, Events, and Tools
A guided tour of ADK's runtime anatomy: LlmAgent, Runner, Session, Event and Tools, plus the yield/pause/resume event loop that ties them together.