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
fix(dream): allow LLM to retry on tool errors instead of failing immediately
chengyongru401d1f57fa15
diff --git a/nanobot/agent/memory.py b/nanobot/agent/memory.pyindex 62de34bba..73010b13f 100644--- a/nanobot/agent/memory.py+++ b/nanobot/agent/memory.py@@ -627,7 +627,7 @@ class Dream:model=self.model,max_iterations=self.max_iterations,max_tool_result_chars=self.max_tool_result_chars,- fail_on_tool_error=True,+ fail_on_tool_error=False,))logger.debug("Dream Phase 2 complete: stop_reason={}, tool_events={}",diff --git a/tests/agent/test_dream.py b/tests/agent/test_dream.pyindex 7898ea267..38faafa7d 100644--- a/tests/agent/test_dream.py+++ b/tests/agent/test_dream.py@@ -72,7 +72,7 @@ class TestDreamRun:mock_runner.run.assert_called_once()spec = mock_runner.run.call_args[0][0]assert spec.max_iterations == 10- assert spec.fail_on_tool_error is True+ assert spec.fail_on_tool_error is Falseasync def test_advances_dream_cursor(self, dream, mock_provider, mock_runner, store):"""Dream should advance the cursor after processing."""