Skip to content

Lesson 5 of 6 · 4 min read

Reading a Trace

Debugging an agent means reading its trace: the ordered record of every model call and tool call with their inputs, outputs, timings and usage. Find the first step that went wrong, reconstruct exactly what the model saw at that step, classify where the failure entered (tool contract, context, plan, runtime or input), fix it at that location, and turn the run into a regression case. A trace is only useful if it records enough to replay a step.

Premium lessonReviewed By the AIAgentInterviews editorial team
Get full Premium access · $25

All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.

6 months · One payment · No auto-renewal

Practise it as an interviewer asks it

From the blog

Course lessons that teach this

Related lessons