feat: web_search 默认结果数 8 → 15
This commit is contained in:
@@ -495,7 +495,7 @@ export async function handleWebSearch(params: { query: string; max_results?: num
|
|||||||
return { success: false, error: '搜索关键词不能为空' };
|
return { success: false, error: '搜索关键词不能为空' };
|
||||||
}
|
}
|
||||||
|
|
||||||
const maxResults = Math.min(params.max_results || 8, 10);
|
const maxResults = Math.min(params.max_results || 15, 15);
|
||||||
|
|
||||||
sendLog('info', `🔍 web_search`, `"${query}" (${maxResults} 条)`);
|
sendLog('info', `🔍 web_search`, `"${query}" (${maxResults} 条)`);
|
||||||
|
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [
|
|||||||
required: ['query'],
|
required: ['query'],
|
||||||
properties: {
|
properties: {
|
||||||
query: { type: 'string', description: 'The search query. Be specific and concise for best results.' },
|
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: 8, max: 10.' }
|
max_results: { type: 'integer', description: 'Maximum number of results to return. Default: 15, max: 15.' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user