Map pause_turn to "pauseTurn" instead of "stop" so the agent loop continues when Anthropic's server pauses a long-running turn (e.g. native web search hitting its iteration limit). Previously the incomplete server_tool_use block was saved to history, causing a 400 invalid_request_error on the next API call. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| tsconfig.json | ||