From 37b7afffd9c03701477007ca59619841640236d0 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 20 Aug 2026 22:01:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=99=BA=E8=83=BD=E5=8A=A9=E6=89=8B?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=8F=9C=E5=8D=95(=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E7=A9=BA=E9=97=B4/=E9=A1=B9=E7=9B=AE/Bug/=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B/=E8=BF=AD=E4=BB=A3)=E4=BB=8E=20TabPanel=20?= =?UTF-8?q?=E4=B8=8A=E6=96=B9=E7=A7=BB=E5=85=A5=E4=BC=9A=E8=AF=9D=20conten?= =?UTF-8?q?t=20=E5=86=85=EF=BC=8C=E4=B8=8E=E4=BC=9A=E8=AF=9D=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/agent/index.ui | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/wwwroot/agent/index.ui b/wwwroot/agent/index.ui index 62c9559..7cb154a 100644 --- a/wwwroot/agent/index.ui +++ b/wwwroot/agent/index.ui @@ -18,16 +18,11 @@ "event": "click", "actiontype": "script", "target": "self", - "script": "var tp=bricks.getWidgetById('session_tabs',bricks.app);if(!tp)return;var sid='s'+Date.now()+'_'+Math.floor(Math.random()*100000);var n=tp.opts.items.length+1;tp.open_tab({name:'session_'+sid,label:'会话 '+n,removable:true,content:{widgettype:'AgentIO',options:{css:'filler',url:'/pipeline_core/api/agent_chat.dspy?session_id='+sid,model_dataurl:'/pipeline_core/api/agent_model_options.dspy',model_cwidth:14,placeholder:'输入你的需求...'}}});" + "script": "var tp=bricks.getWidgetById('session_tabs',bricks.app);if(!tp)return;var sid='s'+Date.now()+'_'+Math.floor(Math.random()*100000);var n=tp.opts.items.length+1;tp.open_tab({name:'session_'+sid,label:'会话 '+n,removable:true,content:{widgettype:'VBox',options:{css:'filler',width:'100%',height:'100%'},subwidgets:[{widgettype:'urlwidget',options:{url:'/pipeline_core/api/agent_menus.dspy',method:'GET'}},{widgettype:'AgentIO',options:{css:'filler',url:'/pipeline_core/api/agent_chat.dspy?session_id='+sid,model_dataurl:'/pipeline_core/api/agent_model_options.dspy',model_cwidth:14,placeholder:'输入你的需求...'}}]}});" }] } ] }, - { - "widgettype": "urlwidget", - "id": "ability_menu", - "options": {"url": "{{entire_url('/pipeline_core/api/agent_menus.dspy')}}", "method": "GET"} - }, { "widgettype": "TabPanel", "id": "session_tabs", @@ -42,14 +37,24 @@ "label": "会话 1", "removable": false, "content": { - "widgettype": "AgentIO", - "options": { - "css": "filler", - "url": "/pipeline_core/api/agent_chat.dspy?session_id=default", - "model_dataurl": "/pipeline_core/api/agent_model_options.dspy", - "model_cwidth": 14, - "placeholder": "输入你的需求..." - } + "widgettype": "VBox", + "options": {"css": "filler", "width": "100%", "height": "100%"}, + "subwidgets": [ + { + "widgettype": "urlwidget", + "options": {"url": "{{entire_url('/pipeline_core/api/agent_menus.dspy')}}", "method": "GET"} + }, + { + "widgettype": "AgentIO", + "options": { + "css": "filler", + "url": "/pipeline_core/api/agent_chat.dspy?session_id=default", + "model_dataurl": "/pipeline_core/api/agent_model_options.dspy", + "model_cwidth": 14, + "placeholder": "输入你的需求..." + } + } + ] } } ]