fix: read_file描述明确支持docx解析,引导agent优先用read_file而非run_command探测

This commit is contained in:
yumoqing 2026-08-15 19:25:04 +08:00
parent b9b6403de3
commit fc0ce9ad7d

View File

@ -228,7 +228,7 @@ GENERAL_TOOLS = [
# ── 通用工具集Hermes CLI 能力子集:文件/搜索/会话/规划)──
ToolDefinition(
name="read_file",
description="读取工作空间中的文件",
description="读取工作空间中的文件内容。支持 docx/txt/md/json 等文本格式docx 会自动解析提取正文文本,直接调用即可读取 docx 内容",
parameters={"path": "相对路径"},
category="file",
),