From 68e7bd8300f318199b3ae076a8469966f7b5ecb0 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Mon, 11 Aug 2025 21:29:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E4=BC=98=E5=8C=96=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E4=BD=93=E7=95=8C=E9=9D=A2=E4=BA=A4=E4=BA=92=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加单例模式支持,区分独立页面和普通视图 - 重构智能体选择器为按钮样式并优化交互 - 更新侧边栏组件以支持不同模式下的显示 - 统一智能体名称显示为"智能体助手" - 调整按钮圆角样式提升视觉一致性 --- src/agents/chatbot/graph.py | 2 +- web/src/components/AgentChatComponent.vue | 31 ++++++++++----- web/src/components/ChatSidebarComponent.vue | 44 ++++++++++++++++++++- web/src/views/AgentSingleView.vue | 2 +- web/src/views/AgentView.vue | 23 +++++------ 5 files changed, 77 insertions(+), 25 deletions(-) diff --git a/src/agents/chatbot/graph.py b/src/agents/chatbot/graph.py index 510e3a69..139d082a 100644 --- a/src/agents/chatbot/graph.py +++ b/src/agents/chatbot/graph.py @@ -18,7 +18,7 @@ from src.agents.chatbot.configuration import ChatbotConfiguration from src.agents.tools_factory import get_runnable_tools class ChatbotAgent(BaseAgent): - name = "问答助手" + name = "智能体助手" description = "基础的对话机器人,可以回答问题,默认不使用任何工具,可在配置中启用需要的工具。" config_schema = ChatbotConfiguration diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index 35a5118c..a3dd4b3b 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -1,16 +1,19 @@