Recent Blog Posts
Insights on AI Agents, Modern Web, and the Future of Engineering.
Extending the Runner Pipeline with Custom Middlewares and Hooks
Extend the ADK Runner pipeline with agent callbacks and BasePlugin hooks: return-value semantics, precedence rules, error hooks, and registering plugins on the App object.
Customizing Agent Output Serialization: From Markdown to Raw JSON
Force structured agent output with output_schema and output_key, capture parsed values in session state, and reformat raw LLM text with after_model_callback and --jsonl.
Handling Streaming Chunks and Partial Responses in ADK Runners
Partial events, token chunks, and final responses in ADK: how the Runner treats partial=True, how to accumulate text from run_async, and when state deltas get committed.
The Event Object Explained: Parts, Actions, State Delta, and Metadata
A field-by-field tour of google.adk.events.Event: content parts, EventActions with state and artifact deltas, control signals, metadata, and is_final_response().
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.