pause_turn
A paused status returned by the Anthropic API when a server-side tool runs for an extended period, indicating that the turn is not yet complete and must be continued.
Timeline (last 90 days)
The Anthropic Messages API may return a response with stop_reason 'pause_turn' when server-side tools run for a long time, and the client should send that response back as-is to continue executing the unfinished tool calls.
In LangChain's create_agent, when Anthropic returns pause_turn, the paused turn is returned directly as the final answer, with no error prompt (corresponding to issue #41625).
PR #41639 plans to add an optional middleware for the pause_turn issue that resends the paused turn until it completes, with a default maximum of 5 continuations.
For Agent applications using Anthropic server-side tools, after the return, you should explicitly check whether response_metadata["stop_reason"] is pause_turn, and implement retry logic yourself or log it.
There is no branch handling pause_turn in Claude Code's main loop, which is a real implementation gap.
All Facts (4)
The Anthropic Messages API may return a response with stop_reason 'pause_turn' when server-side tools run for a long time, and the client should send that response back as-is to continue executing the unfinished tool calls.
50%UnverifiedIn LangChain's create_agent, when Anthropic returns pause_turn, the paused turn is returned directly as the final answer, with no error prompt (corresponding to issue #41625).
50%UnverifiedFor Agent applications using Anthropic server-side tools, after the return, you should explicitly check whether response_metadata["stop_reason"] is pause_turn, and implement retry logic yourself or log it.
50%UnverifiedThere is no branch handling pause_turn in Claude Code's main loop, which is a real implementation gap.
50%