feat(agent): add question suggestions with after-answer follow-ups

Enable agents to configure starter prompts and async follow-up questions after completed answers, with durable caching, analytics events, and chat/embed UI integration.
This commit is contained in:
wizardchen
2026-07-14 11:06:13 +08:00
committed by lyingbug
parent a6c85dad28
commit 087fcc9fe7
50 changed files with 3781 additions and 179 deletions
+36
View File
@@ -893,6 +893,7 @@ export default {
title: "对话",
newChat: "新对话",
suggestedQuestions: "你可以这样问我",
followUpQuestions: "接下来可以继续问",
suggestedQuestionsLoading: "正在加载推荐问题...",
refreshSuggestedQuestions: "换一批推荐问题",
inputPlaceholder: "请输入您的消息...",
@@ -5504,6 +5505,41 @@ export default {
capability: "能力扩展",
integration: "发布集成",
},
questionSuggestions: {
navLabel: "问题推荐",
title: "对话问题推荐",
description: "统一配置开场问题与回答后的上下文追问;渠道可关闭展示,但不能改写智能体策略。",
startersTitle: "开场推荐",
followUpsTitle: "回答后推荐",
enableStarters: "展示开场问题",
enableStartersDesc: "在用户首次提问前展示,可使用运营配置、知识库或混合来源。",
enableFollowUps: "生成回答后推荐",
enableFollowUpsDesc: "每次完整回答结束后异步生成,不阻塞主回答。启用后会产生额外模型调用。",
sourceMode: "内容来源",
count: "展示数量",
curatedItems: "运营配置问题",
curatedItemsDesc: "用于开场推荐;混合模式下优先展示。",
addItem: "添加问题",
model: "生成模型",
modelDesc: "留空时使用本轮对话模型。",
advancedSettings: "高级生成设置",
advancedSettingsDesc: "上下文、问题类型、生成要求与展示规则",
displayRules: "展示与兜底规则",
contextTurns: "上下文轮数",
categories: "问题类型",
instruction: "附加生成要求",
suppressFallback: "兜底回答后不展示",
suppressQuestion: "回答本身以提问结尾时不展示",
knowledgeFallback: "模型生成失败时使用知识库候选",
allowRegenerate: "允许用户换一批",
modeCurated: "运营配置",
modeKnowledge: "知识库",
modeGenerated: "模型生成",
modeHybrid: "混合",
categoryClarify: "澄清",
categoryDeepen: "深入",
categoryAction: "下一步",
},
placeholders: {
available: "可用变量:",
clickToInsert: "(点击插入)",