From 79ec3ed2c31435426b1b2cba7e6075a45cd400dd Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 8 Apr 2026 07:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20list=5Fdirectory.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/tools/impl/list_directory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/agent/tools/impl/list_directory.py b/app/agent/tools/impl/list_directory.py index 283315c7..7ae050d9 100644 --- a/app/agent/tools/impl/list_directory.py +++ b/app/agent/tools/impl/list_directory.py @@ -120,8 +120,8 @@ class ListDirectoryTool(MoviePilotTool): result_json = json.dumps(simplified_items, ensure_ascii=False, indent=2) # 如果结果被裁剪,添加提示信息 - if total_count > 20: - return f"注意:目录中共有 {total_count} 个项目,为节省上下文空间,仅显示前 20 个项目。\n\n{result_json}" + if total_count > 100: + return f"注意:目录中共有 {total_count} 个项目,为节省上下文空间,仅显示前 100 个项目。\n\n{result_json}" else: return result_json except Exception as e: