A stop reason is the field telling you why Claude ended a response, such as finishing, hitting a limit, or wanting to call a tool.
Values like end_turn, max_tokens, and tool_use drive your control flow in an agent loop. Inspecting the stop reason is how your code knows whether to run a tool, continue, or finish. Mishandling it is a common source of agent bugs.