feat: 增强联网搜索与网页抓取的联动
1. TOOL_USAGE_GUIDE 新增第 6 条:联网搜索联动规则 - 要求 AI 在 web_search 后必须选择相关 URL 调用 web_fetch 抓取详情 - 明确告知搜索摘要往往不完整,必须抓取原文才能给出准确答案 2. web_search 默认结果数从 5 提升到 8,给 AI 更多线索定位目标页面
This commit is contained in:
@@ -495,7 +495,7 @@ export async function handleWebSearch(params: { query: string; max_results?: num
|
||||
return { success: false, error: '搜索关键词不能为空' };
|
||||
}
|
||||
|
||||
const maxResults = Math.min(params.max_results || 5, 10);
|
||||
const maxResults = Math.min(params.max_results || 8, 10);
|
||||
|
||||
sendLog('info', `🔍 web_search`, `"${query}" (${maxResults} 条)`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user