[KongchangAI]
Concept暂停回合

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)

Nov 13

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.

Unverified50%
Nov 13

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).

Unverified50%
Nov 13

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.

Expired50%
Nov 13

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.

Unverified50%
Oct 13

There is no branch handling pause_turn in Claude Code's main loop, which is a real implementation gap.

Unverified50%

All Facts (4)

Source Articles