WhoBuilt

Why (Senior) Engineers Struggle to Build AI Agents

May 30, 2026· 11 min· 50K views·Watch on YouTube

Speaker

Philipp Schmid, who works on agents for Gemini and the Gemini API at Google DeepMind, explains why engineers need different approaches to building reliable AI agents at an AI Engineer talk.

Building agents means iterating

Traditional software starts with a spec, then code and tests; an agent starts with instructions, followed by running it, observing its behavior, and adjusting prompts or tools. Schmid compares the shift to moving from controlling every traffic signal to dispatching an agent toward a goal without prescribing every step.

Treat text and context as state

Schmid says language models can interpret meaning that fixed flags and data structures miss. A researcher could approve a plan while adding a US focus and excluding California, rather than rejecting it and starting over. Personalization can also adapt to a user's stated preference, such as using Fahrenheit for cooking despite generally using Celsius.

Hand over control and recover from errors

Fixed workflows struggle with cases that change as a conversation unfolds, such as a customer who asks to cancel and then changes their mind. Schmid argues that agents need room to respond dynamically. When a long-running task fails, the system should pass the error back to the model and continue where possible instead of restarting and losing work, context, and compute.

Evaluate outcomes and make tools clear

Because agents are nondeterministic, Schmid recommends measuring how often they succeed with evals rather than relying only on tests that expect the same output every time. Teams should trace agent actions and grade results, using human experts or an LLM as a judge when outcomes are subjective. Tool schemas and descriptions should explain their meaning and behavior because agents lack developers' background knowledge of an API.

Design for change

Schmid summarizes his guidance as trusting models while verifying results, preserving context, planning for recovery, and evaluating reliability. He also advises building with the expectation that software may need to be replaced as models and agents improve.

Takeaways

  • Give agents a goal and useful context, then let them choose steps where the task allows it.
  • Represent user preferences and plans in language when fixed flags cannot capture their meaning.
  • Feed recoverable errors back into the agent loop so long tasks can continue without starting over.
  • Measure how consistently agents achieve useful outcomes, not just whether one run passes.
  • Write tool descriptions for an agent that has no prior knowledge of your product or API.

Mentioned in this talk

Search inside this talk

What was claimed 5

Related talks