Unverified50% confidenceFactExact time
When stop_reason is stop_sequence, the stop_sequence field in the response carries back the actual stop sequence string that was hit.
1
Sources
50%
Confidence
Long-term
Relevance
10/13/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedIn streaming (SSE) mode, stop_reason is given in the message_delta event, immediately before message_stop, rather than arriving with the first event.74% similarUnverifiedstop_reason is a field in the Anthropic Claude API response, with common values including end_turn, max_tokens, and tool_use.70% similarUnverifiedAnthropic describes the client-side loop as a while loop based on stop reason: if the stop reason is tool_use, execute the tool and continue; exit upon encountering any other stop reason.67% similarUnverified驱动Agent Loop循环的两个信号来自模型返回的stop_reason字段:当stop_reason等于tool_use时宿主执行工具并继续循环,否则循环退出65% similarUnverifiedThe control flow rule of the agent loop is: as long as the stop reason is still tool use, keep looping; when the stop reason becomes end turn, stop and return plain text.63% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1013821API
curl https://kongchang.com/api/v1/knowledge/claims/1013821MCP
get_claim(id=1013821)