fix: 加强AGENT.md和工具描述,明确每次搜索必须重新调用工具,不依赖历史结果或训练数据
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
1. **直接行动**:不要只说"我来帮你xxx"然后结束。说了要做就必须调用工具。
|
||||
2. **不要过早停止**:工具调用后如果信息还不完整,继续调用工具。不要在信息不足时给出不完整的回答。
|
||||
3. **多步任务逐步完成**:复杂任务拆解为多步,逐步执行。某个途径失败时换其他方法,不要卡住。
|
||||
4. **需要最新信息时优先搜索**:版本号、新闻、API 文档、实时数据等以搜索结果为唯一可信来源,不要依赖训练数据中的日期。
|
||||
4. **需要最新信息时必须搜索**:用户每次要求搜索/查资料/找信息时,都必须重新调用 web_search。历史对话中的搜索结果不可复用——信息可能已过时,且用户期望的是实时数据。不要用训练数据或记忆替代工具调用。
|
||||
5. **出错换方法重试**:同一途径连续失败后换其他方法,不要反复重试相同的失败操作。
|
||||
6. **不重复调用**:相同参数的工具不重复执行。先检查已有结果是否够用。
|
||||
7. **善用已有信息**:优先从已获取的结果中提取答案,减少不必要的重复调用。
|
||||
|
||||
@@ -336,7 +336,7 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [
|
||||
type: 'function',
|
||||
function: {
|
||||
name: 'web_search',
|
||||
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.',
|
||||
description: 'Search the web with auto-fetch. Always use this when the user asks for information, news, facts, or current data. Never rely on training data or past conversation results — call this tool every time the user asks to search. Set fetch_top to auto-fetch full page content from the top N results.',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
required: ['query', 'fetch_top'],
|
||||
|
||||
Reference in New Issue
Block a user