Question 60
A logistics agent ends one response with stop_reason=tool_use after asking for a delivery lookup. An engineer labels the response “complete” because the natural-language preface sounds final. What runtime check should replace that heuristic?
Explanation
Correct Answer
The API stop reason controls the tool handshake. Surface wording can be misleading because an assistant may emit explanatory text before requesting a tool.
Incorrect Answers
Token usage is a budgeting metric, not a task-completion signal. The structured protocol response should drive the loop.
Punctuation conveys no protocol state. It cannot determine whether the model is waiting for a tool result.
A fabricated empty result hides missing backend work and invites unsupported claims. The requested lookup should execute or return a truthful error.