0:0021:09

Beyond the Prototype: Building Resilient, Non-Hallucinating AI Agents at Google Scale

Susmita Singh 21:09 2026

An AI agent demo is 5% of the work, and the other 95% keeps it honest

One viral chatbot agrees to sell a car for $1; a coding agent stops mid-task to browse Yellowstone National Park photos. Such failures surface when happy-path demos meet real users, and they cost companies reputation and money. Google senior software engineer Susmita Singh, who leads AI infrastructure for the Google Store, asks what it really takes to turn a weekend prototype into an agent millions of users can trust.

Learn the evals, guardrails, metrics and fixes that move an agent from demo to production

Watch on YouTube

In short

Google senior software engineers Susmita Singh and Anamika Modi argue that building an AI agent prototype is the easy part and that the real product is the engineering around the model. They walk through four continuous pillars for production agents: rigorous evals with LLM-as-a-judge autoraters, multi-layer safety sub-agents, AI-native metrics with cost controls, and production resilience through trajectory tracing, drift monitoring and incident response.

“It's very similar to our own internal instructions where we know that we have to go to gym, we have to eat healthy, but we bypass these instructions as we see fit in our real world and so does the LLMs.”
“If your AI escalates 90% of the time to a human, you'd really just build a very computationally heavy telephone game.”

What you will learn

  • Balance eval data sets at roughly 50 to 60% happy paths, 15 to 20% tricky edge cases and 20 to 30% error and safety cases.
  • Score agent answers automatically with LLM-as-a-judge autoraters for relevancy, faithfulness and factuality.
  • Replace prompt-only safety with dedicated sub-agents for citation checks, PII redaction and prompt-injection screening.
  • Track AI-native SLIs such as time to first token and semantic cache hit rate, and cap costs with token limits, rate limiting and reserved quotas.
  • Debug and harden live agents with trajectory tracing, drift monitoring, circuit breakers, hot patches and a closed eval loop.

Key takeaways from the speaker

  • Adopt a Production-First AI Mindset: Shift your engineering focus from raw model capabilities to the critical infrastructure: evaluations, safety, and observability, required to scale agents safely and inclusively.
  • Build Automated Evals and Guardrails: Deploy multi-dimensional auto-raters to measure relevancy, faithfulness and fairness, and implement strict safety guardrails to prevent hallucinations and data leaks to protect diverse users.
  • Define AI-Specific SLIs/SLOs and Cost Controls: Establish actionable metrics for latency and error rates, and implement protective engineering (token quotas, rate limiting, AI credit systems) to prevent runaway LLM costs.
  • Architect AI Observability and Incident Response: Instrument your agents to trace thought trajectories, detect model drift, and build emergency stop and hot-patching mechanisms to mitigate live generative AI outages.

Details

Level
Intermediate
Format
Tech talk
Technical depth
Practitioner
For
Mid-career, Senior individual contributor
Length
21:09
Published
July 2026

Questions this talk answers

Why can't traditional unit tests validate an AI agent?

Unit tests expect deterministic output, but an LLM can give several equally valid answers to the same prompt. Evals must judge semantic meaning, accuracy and tone instead of matching characters.

How should an eval data set for an agent be balanced?

Only 50 to 60% of cases should be happy paths, with 15 to 20% tricky edge cases and the remaining 20 to 30% errors and safety cases that test the guardrails.

Why isn't a system prompt enough to keep an agent safe?

Prompt instructions can be easily bypassed, so safety should be split into sub-agents that each handle one task, such as citation checking, PII removal and detecting prompt injection.

Which metrics matter when running AI agents in production?

Time to first token is the primary SLI, alongside semantic cache hit rate, business KPIs such as human escalation rate or citation depth, and cost controls like token limits and reserved quotas.

How do you fix an agent that misbehaves or drifts in production?

Trace each step of the agent's trajectory, monitor drift with evals and tool call success rates, circuit break or hot patch the failing part, then add the problem prompts back into the eval set.

About this talk

Building an AI agent prototype is often just 5% of the journey. The challenge lies in the remaining 95%, transforming that prototype into a resilient, inclusive, production-ready system capable of serving millions of users without hallucinating. From the real-world experiences of building agents, this session explores the engineering required to bridge the prototype to production gap. We will dive into the critical pillars of production-grade AI: building robust evaluation frameworks to tame non-determinism, implementing multi-layered safety (redactions, citations, and consent) and infrastructure guardrails to protect diverse users from bias and harm, defining hard metrics for reliability, and establishing monitoring and debugging when models drifts. Attendees will learn to architect agents that are factually grounded, inclusive, and reliable at scale using industry-standard patterns applicable to any tech stack.

Topics

Related talks

Browse the library

Observability for GenAI Apps

Shirsha Ray Chaudhuri Director, Research Engineering ,, TR Labs at Thomson Reuters

Standard APM missed per-user tokens, user feedback and prompts in GenAI

Intermediate AI and data 2025

Right-Sizing AI for DevOps

Shalini Sudarsan +1 DevOps Engineering Manager, Kindercare Learning Companies

Reaching for an LLM first can cost DevOps teams money, speed and accuracy

Intermediate AI and data 2026