Prototype to Production with ADK
By Google for Developers
Key Concepts
- Agent Development Kit (ADK): A framework for building, deploying, and managing multi-agent systems.
- Multi-Agent Orchestration: Using specialized agents (Analyzer, Style Checker, Tester, Synthesizer) in sequential or looping workflows rather than a single monolithic agent.
- Shared Context: The "brain" of the system, consisting of Session State (short-term), Memory (long-term/personalized), and Artifacts (large data storage).
- Deterministic vs. Probabilistic: Separating deterministic tasks (code parsing, style checks) from LLM-based reasoning.
- Vertex AI Agent Engine: A managed platform for hosting, scaling, and securing agentic applications.
- Observability: Using Cloud Trace to monitor agent workflows, debug bottlenecks, and inspect tool outputs.
1. Architecture and Workflow Design
The system is designed as a modular pipeline rather than a monolith to ensure maintainability and robustness.
- Review Pipeline (Sequential):
- Analyzer Agent: Parses code structure using Python’s
astlibrary. - Style Checker Agent: Validates PEP 8 compliance using
pycodestyle. - Tester Agent: Executes code in a secure sandbox to identify bugs.
- Synthesizer Agent: Aggregates results into actionable feedback.
- Analyzer Agent: Parses code structure using Python’s
- Fix Pipeline (Looping):
- Uses a Loop Agent to iterate between a Fixer Agent (generates code), Test Fix Agent (verifies), and Validator Agent (checks success criteria).
- Escalation: The validator uses an
escalationflag to break the loop once the code passes.
2. Technical Methodologies
- Non-blocking Execution: CPU-intensive tasks (like
ast.parse) are wrapped inrun_in_executorto prevent the application from freezing during async operations. - State Management: Uses constant keys (e.g.,
CODE_TO_REVIEW,STYLE_SCORE) to pass data reliably between agents. - Dynamic Instruction Injection: Instead of static prompts, the system uses functions to inject current session state data into agent instructions, ensuring context-aware reasoning.
- Dual-Storage Strategy: Agents attempt to save data to persistent services (Vertex AI Memory Bank) with a fallback to session state for resilience.
3. Deployment and Productionization
- Infrastructure as Code: A
deploy.shscript serves as the single source of truth, handling API enablement, IAM role assignment, and containerization. - Deployment Targets:
- Agent Engine: Best for managed session state and built-in infrastructure.
- Cloud Run: Ideal for serverless scaling and variable traffic.
- GKE: Recommended for complex networking, GPU requirements, or stateful sets.
- Security: The video emphasizes never running untrusted LLM-generated code directly; it recommends using sandboxed environments (e.g., gVisor) with strict resource limits.
4. Notable Quotes
- "A real-world agent isn't just a single prompt, it's a workflow. If you try to build this as a giant monolithic agent, it becomes brittle and hard to maintain." — Ayo Adedeji
- "The BuiltInCodeExecutor provides proof, not just speculation. When our agent reports a type error, it's because it actually ran the code and witnessed the crash firsthand." — Ayo Adedeji
- "Use tools for deterministic work, use agents for reasoning and orchestration, and use state with constant keys to pass data reliably between them." — Ayo Adedeji
5. Observability and Monitoring
- Cloud Trace: Acts as a "security camera" for the agent. It provides a waterfall view (Gantt chart) of the entire request lifecycle.
- Attributes: Developers can inspect specific LLM calls, token counts, and the raw JSON outputs of tools within the trace spans to debug failures.
6. Synthesis and Conclusion
The transition from a "proof of concept" to an enterprise-grade agent requires moving away from simple prompt engineering toward a structured, multi-agent architecture. By separating deterministic tools from LLM reasoning, implementing robust state management, and utilizing managed infrastructure like Vertex AI, developers can create self-correcting, scalable systems. The key takeaway is that reliability is built through modularity, observability, and strict data contracts between agents.
Chat with this Video
AI-PoweredLoad the transcript when you're ready to chat so the initial page stays lighter.
Related Videos

Stanford CS153 Frontier Systems | Building the Frontier Ecosystem
Stanford Online

'Things are going to be okay, in Canada and the U.S.': Thorne
BNN Bloomberg

I Run a $1M SaaS Portfolio on This Box (Self-Hosted)
Simon Høiberg

I'M OUT: The $11 Trillion AI Bubble is Breaking!
Steven Van Metre

South Korea bets big on AI with nearly a trillion dollars of investment • FRANCE 24 English
FRANCE 24 English

The Bubble is Bursting... (Emergency Update)
Bravos Research

The AI Bubble Just Ended - Without Popping
Heresy Financial