🔥 3-day streak
Claude Certified Associate (Foundations)136 / 150
Question 136 of 150
You are building an agent that lets Claude call a set of tools in a loop. In testing, you notice that for some ambiguous requests Claude keeps requesting tools repeatedly (stop_reason 'tool_use' every turn) and never produces a final text answer, causing runaway API costs. Which change to your application code best addresses this while keeping the tool-use loop functional for normal requests?
Reviewed for accuracy · Report an issueNext question