From 463d8b817bf2164159046e6e0d248a9ae0d9a785 Mon Sep 17 00:00:00 2001 From: zhuyongxin Date: Wed, 24 Jun 2026 18:41:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=20queryInternalDocs?= =?UTF-8?q?=20=E7=9A=84=E5=8E=9F=E5=A7=8B=E5=B7=A5=E5=85=B7=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 保留原始 @Tool description,仅在 Java 层面标记 @Deprecated。 这样可以保留完整的工具提示词用于后续对比分析。 --- .../com/superbiz/agent/agent/tool/InternalDocsTools.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/superbiz/agent/agent/tool/InternalDocsTools.java b/src/main/java/com/superbiz/agent/agent/tool/InternalDocsTools.java index 8212c31..a520374 100644 --- a/src/main/java/com/superbiz/agent/agent/tool/InternalDocsTools.java +++ b/src/main/java/com/superbiz/agent/agent/tool/InternalDocsTools.java @@ -53,9 +53,10 @@ public class InternalDocsTools { * @deprecated 请使用 {@link com.superbiz.agent.tool.LookupKnowledgeTool#lookupKnowledge(String)} 替代 */ @Deprecated - @Tool(description = "[DEPRECATED] Use lookup_knowledge instead. " + - "This tool performs semantic search only. " + - "lookup_knowledge provides L0 exact match + L1 semantic search with better performance.") + @Tool(description = "Use this tool to search internal documentation and knowledge base for relevant information. " + + "It performs RAG (Retrieval-Augmented Generation) to find similar documents and extract processing steps. " + + "This is useful when you need to understand internal procedures, best practices, or step-by-step guides " + + "stored in the company's documentation.") public String queryInternalDocs( @ToolParam(description = "Search query describing what information you are looking for") String query) {