feat: Enhance agent configuration and localization for web search prompts

- Updated agent configuration to support separate system prompts for web search enabled and disabled states.
- Removed deprecated agent configuration parameters to streamline settings management.
- Enhanced UI components in AgentSettings.vue to allow configuration of custom prompts based on web search status.
- Improved localization in English, Russian, and Chinese for new prompt settings and UI elements.
- Refactored related API and service logic to accommodate changes in agent configuration structure.
This commit is contained in:
wizardchen
2025-11-19 19:27:25 +08:00
parent ddf6b4e748
commit 3bf2a14499
44 changed files with 2412 additions and 1646 deletions
+3 -3
View File
@@ -8,8 +8,8 @@ export const toolIcons: Record<string, string> = {
multi_kb_search: '🔍',
knowledge_search: '📚',
get_chunk_detail: '📄',
get_related_chunks: '🔗',
list_knowledge_bases: '📂',
list_knowledge_chunks: '🧩',
get_document_info: 'ℹ️',
query_knowledge_graph: '🕸️',
think: '💭',
@@ -43,11 +43,11 @@ export function getToolDisplayName(toolName: string): string {
multi_kb_search: '跨库搜索',
knowledge_search: '知识库搜索',
get_chunk_detail: '获取片段详情',
get_related_chunks: '获取相关片段',
list_knowledge_chunks: '查看知识分块',
list_knowledge_bases: '列出知识库',
get_document_info: '获取文档信息',
query_knowledge_graph: '查询知识图谱',
think: '思考',
think: '深度思考',
todo_write: '制定计划',
};
return displayNames[toolName] || toolName;