Which stop_reason value is the only one that unambiguously signals the orchestrator to exit the loop and return the response to the user?
Answer: end_turn
end_turn is the only stop_reason that always means the model finished its response and requires no further orchestrator action. stop_sequence should typically be treated similarly but may require special handling depending on your loop design. max_tokens requires checking for partial tool_use blocks. tool_use always requires executing the pending tool calls.