A support agent replied 'Your refund is on the way' and closed the ticket, but no refund tool ever ran. The transcript shows one turn with a text block, two tool_use blocks, and a stop_reason of tool_use. What should the loop have checked first?
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.