reading agent traces and telemetry9 / 9
what an agent leaves behind
Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Last one. The starter has a trace and a partial find_first_bad_turn
function. The function should return the n value of the first turn
whose stop_reason is NOT tool_use and NOT end_turn. Right now it
returns None. Finish the body so it returns the right turn number.
Expected output:
3
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _