WhoBuilt

How Evals and Prompts Shape Agent Behavior

Jul 24, 2026· 19 min· 2.7K views·Watch on YouTube

Speakers

Preetika Bhateja and Daniel Bump, who work on image and video models for YouTube Ads, explain how to build and use agent evaluations at AI Engineer.

Build a reliable foundation

Preetika says agents are hard to make reliable in production, so teams need evaluations to understand how they behave. Daniel recommends first improving the agent’s tools, then considering a separate critique agent with a remediation loop to catch gaps.

Start small and learn from outputs

Daniel says evaluations should define good behavior in strict, measurable terms. Early on, the team found it useful to inspect outputs and iterate from intuition before building a comprehensive eval, since prompt changes and architecture shifts could bring large gains. Preetika recommends starting with a few core tasks, including checks for things the agent should avoid.

Make human ratings useful

Preetika recommends giving raters clear rubrics and examples, and asking them to explain pass or fail judgments. For ad generation, ratings covered several dimensions, including accuracy and brand safety, so explanations helped show where the system fell short. The team also compared human and LLM ratings through sampling pipelines and monitored their agreement.

Inspect traces and iterate on patterns

Preetika describes using agent traces to find a failure that pass rates missed: the agent removed a legal disclaimer despite repeated instructions to preserve it. Daniel recommends reviewing eval metrics and adjusting the eval, rating guide, model, or tools as needed. They advise looking for recurring patterns across examples rather than changing a prompt in response to one nondeterministic run.

Keep evals current and define launch criteria

Preetika recommends testing edge cases, keeping a test set, and refreshing it sparingly with production data. Daniel says evals and curated golden sets should evolve with the product and its use cases. Teams should set launch criteria early, choose relevant metrics, and use evals to identify regressions and assess trade-offs.

Takeaways

  • Optimize the agent’s tools before investing in larger evaluations.
  • Begin with a few core tasks and use observed failures to shape the eval.
  • Give raters clear examples and collect reasons for their judgments.
  • Inspect traces and look for repeated failure patterns across multiple examples.
  • Refresh test data from production and define launch criteria before rollout.

Mentioned in this talk

Search inside this talk

What was claimed 5

Related talks