From 663c7d77985c31e13656e5f4718463d19892da6e Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 2 Nov 2026 19:58:52 +0800 Subject: [PATCH] fix: ai generate question --- .../SelectApplicationDrawer.vue | 26 +++++++++++++++++-- .../ai-generate/panel/AiGeneratePanel.vue | 26 ++++++++++++++++--- 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/ui/src/conversation-panel/left-sidebar/portal-conversation-list/SelectApplicationDrawer.vue b/ui/src/conversation-panel/left-sidebar/portal-conversation-list/SelectApplicationDrawer.vue index 31d1ea8100e..e28218ebe77 100644 --- a/ui/src/conversation-panel/left-sidebar/portal-conversation-list/SelectApplicationDrawer.vue +++ b/ui/src/conversation-panel/left-sidebar/portal-conversation-list/SelectApplicationDrawer.vue @@ -45,16 +45,29 @@ defineExpose({ open }) + + diff --git a/ui/src/workflow-canvas/ai-generate/panel/AiGeneratePanel.vue b/ui/src/workflow-canvas/ai-generate/panel/AiGeneratePanel.vue index 5315ae9f833..27afb9f641d 100644 --- a/ui/src/workflow-canvas/ai-generate/panel/AiGeneratePanel.vue +++ b/ui/src/workflow-canvas/ai-generate/panel/AiGeneratePanel.vue @@ -7,6 +7,7 @@ import type { ScrollbarInstance } from 'element-plus' import type { DefaultModelSettingPayload, ModelItem, ModelProviderItem } from '@/api/types' import SelectModel from '@/components/business/select-model/index.vue' import ContentList from '@/conversation-panel/components/content-list/index.vue' +import QuickQuestion from '@/conversation-panel/components/markdown-renderer/QuickQuestion.vue' import { inputShortcut } from '@/conversation-panel/core/shortcuts' import { MsgError, MsgSuccess } from '@/utils/message' import { useWorkflowStore } from '@/workflow-canvas/store' @@ -47,6 +48,18 @@ const activity = createActivity() const busy = computed(() => status.value === 'running') const started = computed(() => status.value !== 'idle') +const suggestedRequirements = [ + '做一个产品客服,先查产品知识库回答,查不到时礼貌兜底。', + '做一个可以查询产品收费信息的智能体。', + '做一个需要时可以转人工服务的客服智能体。', +] + +function sendSuggestedRequirement(question: string) { + if (!modelId.value || busy.value) return + requirement.value = question + submit() +} + let agent: AgentHandle | null = null function loadModels() { @@ -178,10 +191,15 @@ defineExpose({ open, close })
-

- 描述你想要的智能体,例如:“做一个产品客服,先查产品知识库回答,查不到时礼貌兜底”。AI - 会规划流程、添加节点、连线并完成配置,生成后请检查再保存。 -

+
+

请描述你的需求,如下

+
+ +
+
{{ activity.lastActivity.value || '生成中' }}