From f0d79869475dfb960d3987864040867ad8282f00 Mon Sep 17 00:00:00 2001 From: thzxx Date: Fri, 12 Jun 2026 14:21:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtool-registry.ts?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF=EF=BC=8Crequired=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=94=BE=E5=85=A5parameters=E5=86=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/services/tool-registry.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/services/tool-registry.ts b/src/renderer/services/tool-registry.ts index 88eda40..c4329fb 100644 --- a/src/renderer/services/tool-registry.ts +++ b/src/renderer/services/tool-registry.ts @@ -339,7 +339,7 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [ description: 'Search the web and optionally auto-fetch full page content. Set fetch_top to automatically fetch complete content from the top N results — this saves you the extra step of calling web_fetch yourself. Use fetch_top=3 for most cases. Returns snippets + full fetched content. Supports time range filtering.', parameters: { type: 'object', - required: ['query'], + required: ['query', 'fetch_top'], properties: { query: { type: 'string', description: 'The search query. Be specific and concise for best results.' }, max_results: { type: 'integer', description: 'Maximum number of results to return. Default: 30, max: 30.' }, @@ -347,8 +347,8 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [ enhance_snippets: { type: 'boolean', description: 'Auto-fetch detailed snippet for results with too-short descriptions. Default: true.' }, fetch_top: { type: 'integer', description: 'Number of top results to auto-fetch full content for. Min: 3, max: 10. Results shorter than this are useless — snippets lack detail.' } } - }, - required: ['query', 'fetch_top'] + } + } }, // ══════════════════════════════════════════════ // v4.0 新增工具:记忆和会话管理