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
UnverifiedThe two signals that drive the Agent Loop come from the stop_reason field returned by the model: when stop_reason equals tool_use, the host executes the tool and continues the loop; otherwise, the loop exits.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)