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