A robust agent loop must:
Select an answer to reveal the explanation.
Short Explanation and Infographic
Agents need a max-hop counter and stop_reason handling — infinite tool loops are outages waiting to happen.
Full explanation below image
Full Explanation
Termination conditions and loop bounds are mandatory for production agents.