end_turn
APIDefinition
A stop_reason value indicating Claude finished its response naturally without hitting a limit or requesting a tool. In agentic loops, this signals the loop should stop and the final response should be presented to the user.
Example Usage
if response.stop_reason == 'end_turn': break # Task complete, present response