Question 1
A subscription-support agent calls a billing lookup and receives an assistant message containing introductory text plus a tool_use block. The outer application mistakenly treats any assistant text as completion. What should control the next turn?
Explanation
Correct Answer
A tool_use stop signals that the model is waiting for a tool result. Continuing with that result preserves the agent loop; a later end_turn indicates completion.
Incorrect Answers
Resetting history discards the model’s requested action and the customer details already gathered. The next step should carry the tool result into the existing conversation.
A fixed count of tool calls is not a completion signal. The model may need several tool-result iterations before it produces a final answer.
An assistant can speak and request a tool in the same response. Text alone does not satisfy the pending tool-use request or establish that the task is complete.