Building with LLMs & evaluation · Technical round · Hard
An agent you deployed ran forty turns on one case overnight, calling the same failing tool. What's your fix?
Production-agent thinking: bounds outside the model, a defined exit, and proof by replay. Prompt-only fixes are the mistake that caused it.
Asked for: Solutions Architect, Forward-Deployed Engineer.
A worked answer
Bound it outside the model, define the exit, prove it by replay.
- A hard turn budget per case and a tool-failure budget, enforced by the harness, not the prompt. When either is hit, the case goes to a clean handoff state with the evidence attached.
- Treat tool state explicitly: a tool in maintenance returns a typed result the loop handles, not an error the model is asked to reason about.
- Replay the overnight case against the fix and show it stops at the budget with a handoff — that's the proof, and it goes in the write-up.
- Then the observability you were missing: an alert on turns per case and on repeated identical tool calls, so the next one is caught at turn five.
Say what you'd tell the customer: what happened, what it cost, what's changed, and how they'd see it if it recurred. Retries with backoff are the wrong fix here — they make the loop slower, not bounded — and 'improve the prompt so it notices' asks the model to be the stop mechanism, which is how you got here.
The follow-ups
- What should the handoff contain?
- How do you set the turn budget — what number, and why?
What loses the round
- Prompt-only fix.
- Backoff instead of a bound.
- An alert as the only stop mechanism.
Build this on the roadmap
- Build a small LLM application end to end · ~10h
- Design for being wrong in front of the customer · ~4h
- Validate configuration before serving and make credential rotation testable · ~4h
Rehearse the answer with a coach
A worked answer tells you what good looks like. Saying it out loud under questioning, with someone who has run the round, is what gets you the offer.
Apply now