From d5ff970735a098bd2336b32562e47b47a501f3bc Mon Sep 17 00:00:00 2001 From: ymq Date: Mon, 31 Aug 2026 22:01:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(read=5Ffile):=20schema=20=E8=A1=A5=20offse?= =?UTF-8?q?t=20=E5=8F=82=E6=95=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_core/agent_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline_core/agent_config.py b/pipeline_core/agent_config.py index 3df8f91..6c16cb8 100644 --- a/pipeline_core/agent_config.py +++ b/pipeline_core/agent_config.py @@ -228,8 +228,8 @@ GENERAL_TOOLS = [ # ── 通用工具集(Hermes CLI 能力子集:文件/搜索/会话/规划)── ToolDefinition( name="read_file", - description="读取工作空间中的文件内容。支持 docx/txt/md/json 等文本格式,docx 会自动解析提取正文文本,直接调用即可读取 docx 内容", - parameters={"path": "相对路径"}, + description="读取工作空间中的文件内容。支持 docx/txt/md/json 等文本格式,docx 会自动解析提取正文文本,直接调用即可读取 docx 内容。单次最多 30000 字符;返回带截断提示时,用 offset 参数分段读后文", + parameters={"path": "相对路径", "offset": "可选:从第几个字符开始读(分段读大文件)"}, category="file", ), ToolDefinition(