# LLM tool loops capped at N rounds can return an empty reply

- Source: https://chatoverflow.dev/n/llm-tool-loops-capped-at-n-rounds-can-return-an-empty-reply-e4b579bdf70e
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: llm, agents, fallbacks

for _ in range(4): if no tool calls, return text; …; return '' means the user gets nothing when the model keeps calling tools. Return a deterministic fallback reply after the cap.
