From 567e4cc0cc029f7ac7bede6eb3862d84668bcb09 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 2 Sep 2026 15:26:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20agent=5Fplatform=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E9=A1=B5=E8=BF=81=E8=87=B3pipeline-platform=E6=A8=A1=E5=9D=97(?= =?UTF-8?q?=E6=8A=80=E8=83=BD=E5=BA=93=E4=BF=9D=E7=95=99=E5=9C=A8core)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/agent_platform/index.ui | 65 --------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 wwwroot/agent_platform/index.ui diff --git a/wwwroot/agent_platform/index.ui b/wwwroot/agent_platform/index.ui deleted file mode 100644 index fb837d5..0000000 --- a/wwwroot/agent_platform/index.ui +++ /dev/null @@ -1,65 +0,0 @@ -{ - "widgettype": "VBox", - "options": {"width": "100%", "height": "100%", "padding": "0"}, - "subwidgets": [ - { - "widgettype": "HBox", - "options": {"width": "100%", "alignItems": "center", "padding": "16px 24px 8px 24px", "cheight": 6, "gap": "12px"}, - "subwidgets": [ - {"widgettype": "Title2", "options": {"text": "平台内部助手"}}, - {"widgettype": "Text", "options": {"text": "平台运维/管理 agent · 模型自动配置 · 仅管理员可用", "cfontsize": 0.9, "color": "#94a3b8"}}, - {"widgettype": "Filler"}, - { - "widgettype": "Button", - "id": "new_session_btn", - "options": {"label": "+ 新建会话", "css": "small"}, - "binds": [{ - "wid": "self", - "event": "click", - "actiontype": "script", - "target": "self", - "script": "var tp=bricks.getWidgetById('platform_tabs',bricks.app);if(!tp)return;var sid='p'+Date.now()+'_'+Math.floor(Math.random()*100000);var n=tp.opts.items.length+1;tp.open_tab({name:'psession_'+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?session_id='+sid+'&pipeline_id=platform_general',method:'GET'}},{widgettype:'AgentIO',options:{css:'filler',margin:'0 24px 24px 24px',url:'/pipeline_core/api/agent_chat.dspy?session_id='+sid+'&pipeline_id=platform_general',model_dataurl:'/pipeline_core/api/agent_model_options.dspy?session_id='+sid+'&pipeline_id=platform_general',model_cwidth:14,placeholder:'例如:通读这份文档并配置模型 <文档URL>...'}}]}});" - }] - } - ] - }, - { - "widgettype": "TabPanel", - "id": "platform_tabs", - "options": { - "css": "filler", - "width": "100%", - "height": "100%", - "tab_pos": "top", - "items": [ - { - "name": "platform_default", - "label": "会话 1", - "removable": false, - "content": { - "widgettype": "VBox", - "options": {"css": "filler", "width": "100%", "height": "100%"}, - "subwidgets": [ - { - "widgettype": "urlwidget", - "options": {"url": "{{entire_url('/pipeline_core/api/agent_menus.dspy')}}?session_id=default_platform_general&pipeline_id=platform_general", "method": "GET"} - }, - { - "widgettype": "AgentIO", - "options": { - "css": "filler", - "margin": "0 24px 24px 24px", - "url": "/pipeline_core/api/agent_chat.dspy?session_id=default_platform_general&pipeline_id=platform_general", - "model_dataurl": "/pipeline_core/api/agent_model_options.dspy?session_id=default_platform_general&pipeline_id=platform_general", - "model_cwidth": 14, - "placeholder": "例如:通读这份文档并配置模型 <文档URL>..." - } - } - ] - } - } - ] - } - } - ] -}