Define SLOs for a customer support agent. Every span returns 200 and latency is fine. What do you actually alert on?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
That premise is the whole problem: agents fail silently. RED metrics (rate, errors, duration) were built for services where failure throws. An agent that confidently quotes the wrong refund amount emits a clean trace, healthy latency, zero errors. Standard APM says green. So the first move is defining failure semantically rather than by status code.
Full worked answer
That premise is the whole problem: agents fail silently. RED metrics (rate, errors, duration) were built for services where failure throws. An agent that confidently quotes the wrong refund amount emits a clean trace, healthy latency, zero errors. Standard APM says green. So the first move is defining failure semantically rather than by status code.
The SLI that matters is task success rate, and the hard part is measuring it without a human reviewing every conversation. Sources, in descending reliability:
- Ground truth from downstream state. Did the refund post? Did the ticket close and stay closed for 7 days? Best signal, delayed, which is fine for an SLO and useless for an alert.
- Human proxies. Escalation rate, reopen rate, thumbs-down, customer re-contact within 24 hours. Cheap, real, lagging.
- LLM judge on a sample. Continuous and immediate, but noisy. Calibrate it against human labels or you are alerting on the judge's mood.
Leading indicators you can alert on in minutes, which is what the question is really after:
- Runs terminating on max iterations or budget. A rise means the agent is failing to converge, always before users complain.
- Steps per task, p50 and p99. A shift means behaviour changed even if success rate has not moved yet.
- Tool error rate per tool. One flaky dependency degrades the whole agent, and the agent hides it by retrying.
- Loop signatures. Same tool, same arguments, three times in a run. A stuck agent, trivially detectable.
- Human intervention rate. The most honest number in the system.
On SLO shape: latency objectives need care, because an agent that thinks longer and gets it right is good. Set the latency objective on successful runs only, or fast failures will flatter your percentiles. Set a cost per successful task objective alongside, and treat a cost blowout as an incident, because agents fail expensively in a way stateless services do not.
The cultural point: alert on trends in the leading indicators, page on user-visible harm, and accept that your success SLI is sampled and lagged. Anyone claiming a clean real-time success metric is measuring something else.
What a good answer covers
- That premise is the whole problem: agents fail silently
- RED metrics (rate, errors, duration) were built for services where failure throws
- An agent that confidently quotes the wrong refund amount emits a clean trace, healthy latency, zero errors
- So the first move is defining failure semantically rather than by status code
- The SLI that matters is task success rate, and the hard part is measuring it without a human reviewing…
Key terms: agents fail silently · Ground truth from downstream state · Human proxies · LLM judge on a sample · Tool error rate per tool · Loop signatures · Human intervention rate · On SLO shape · cost per successful task
In the glossary: SLO · Judge (LLM-as-judge)
Interviewer follow-ups to expect
Your LLM judge and your human labels disagree 15% of the time. What do you do?
How do you set an error budget for something you only measure on a 2% sample?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep