From 30aec373c84a3bf9116a76075d2d70b75234992e Mon Sep 17 00:00:00 2001 From: iomgaa Date: Mon, 6 Jul 2026 22:53:05 -0400 Subject: [PATCH] =?UTF-8?q?fix(core/agent):=20=E7=A7=BB=E9=99=A4=20max=5Fs?= =?UTF-8?q?teps=20=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 设计要求调用方显式传入 max_steps(P4: 显式优于隐式)。 Co-Authored-By: Claude Opus 4.6 (1M context) --- core/agent/loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/agent/loop.py b/core/agent/loop.py index 24d646f..11fbf16 100644 --- a/core/agent/loop.py +++ b/core/agent/loop.py @@ -72,7 +72,7 @@ class AgentLoop: def __init__( self, llm: LLMProvider, - max_steps: int = 15, + max_steps: int, max_retries: int = 3, ) -> None: self._llm = llm