Unverified50% confidenceDecision RuleExact time
The 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.
1
Sources
50%
Confidence
Long-term
Relevance
10/12/2026
First Seen
Sources
Related Entities
Related Claims
Unverified驱动Agent Loop循环的两个信号来自模型返回的stop_reason字段:当stop_reason等于tool_use时宿主执行工具并继续循环,否则循环退出78% 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.76% similarUnverifiedThe termination logic of an Agent Loop is to loop until the model no longer initiates any tool calls.76% similarUnverifiedThe termination condition of an agentic loop typically falls into one of two categories: the model returns a plain-text response (stop_reason is end_turn), or the preset maximum number of iterations is reached.75% similarUnverifiedIn Claude's API, the stop reason is marked as tool_use when the model wants to call a tool.72% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1009207API
curl https://kongchang.com/api/v1/knowledge/claims/1009207MCP
get_claim(id=1009207)