feat: 统一系统提示词并优化智能体选择器界面

- 将系统提示词从分离的网络搜索开/关状态合并为统一提示词,使用 {{web_search_status}} 占位符动态控制行为
- 重构智能体选择器,从简单tooltip升级为内容丰富的popup,显示智能体详细信息、类型和能力
- 新增FAQ优先策略配置,支持FAQ答案优先于普通文档
- 优化知识库选择逻辑,智能体切换时自动同步配置的知识库
- 更新相关接口类型定义和国际化文本
This commit is contained in:
wizardchen
2025-12-28 21:46:42 +08:00
parent c9e482eb79
commit 6bc19ab082
21 changed files with 1198 additions and 609 deletions
+1 -2
View File
@@ -4,8 +4,7 @@ import { get, post, put, del } from "../../utils/request";
export interface CustomAgentConfig {
// ===== 基础设置 =====
agent_mode?: 'quick-answer' | 'smart-reasoning'; // 运行模式:quick-answer=RAG模式, smart-reasoning=ReAct Agent模式
system_prompt?: string; // 系统提示词(普通模式,或Agent模式网络搜索关闭时)
system_prompt_web_enabled?: string; // Agent模式网络搜索开启时的系统提示词
system_prompt?: string; // 统一系统提示词(使用 {{web_search_status}} 占位符动态控制行为)
context_template?: string; // 上下文模板(普通模式)
// ===== 模型设置 =====