Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
feat: improve fallback message when max iterations reached
3927odbbbecb25c0f
diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.pyindex a660436d2..4532b4cbd 100644--- a/nanobot/agent/loop.py+++ b/nanobot/agent/loop.py@@ -243,7 +243,10 @@ class AgentLoop:breakif final_content is None:- final_content = "I've completed processing but have no response to give."+ if iteration >= self.max_iterations:+ final_content = f"Reached {self.max_iterations} iterations without completion."+ else:+ final_content = "I've completed processing but have no response to give."# Log response previewpreview = final_content[:120] + "..." if len(final_content) > 120 else final_content