From 777468ab716163a4e4d8b4e3760f0b0a5d15fa13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Fri, 5 Jun 2026 18:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_ai_agent/models/ai_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_ai_agent/models/ai_agent.py b/yuthon_ai_agent/models/ai_agent.py index 30340f155..667c6c8a1 100644 --- a/yuthon_ai_agent/models/ai_agent.py +++ b/yuthon_ai_agent/models/ai_agent.py @@ -12,7 +12,7 @@ from odoo.exceptions import AccessError _logger = logging.getLogger(__name__) # 单次对话最多允许的工具调用轮次(防止死循环) -MAX_TOOL_ITERATIONS = 6 +MAX_TOOL_ITERATIONS = 12 # search_read 默认/最大返回条数 DEFAULT_LIMIT = 20 MAX_LIMIT = 200