diff --git a/web/app/dashboard/ai-agents/_components/config-workbench.tsx b/web/app/dashboard/ai-agents/_components/config-workbench.tsx index 5c7ff4f..580dd4a 100644 --- a/web/app/dashboard/ai-agents/_components/config-workbench.tsx +++ b/web/app/dashboard/ai-agents/_components/config-workbench.tsx @@ -468,7 +468,7 @@ export function AIAgentConfigWorkbench({ { key: "model", title: "模型与 Prompt", icon: }, { key: "knowledge", title: "知识库", icon: }, { key: "skills", title: "Skills", icon: }, - { key: "tools", title: "工具能力", icon: }, + { key: "tools", title: "MCP Tools", icon: }, { key: "workflow", title: "会话流程", icon: }, { key: "handoff", title: "转人工与兜底", icon: }, { key: "publish", title: "发布状态", icon: }, @@ -668,7 +668,7 @@ export function AIAgentConfigWorkbench({ ) : null} {activeSection === "tools" ? ( - +
-
+
主会话流程
-
- 当前 Agent 只维护一个主流程,发布后作为会话运行入口。 -
{validation ? ( @@ -731,15 +728,15 @@ export function AIAgentConfigWorkbench({ {validation.valid ? "校验通过" : `${validation.errors.length} 个问题`} ) : null} - - - diff --git a/web/app/dashboard/ai-workflows/_components/workflow-editor.tsx b/web/app/dashboard/ai-workflows/_components/workflow-editor.tsx index 45bcdda..aea9cb2 100644 --- a/web/app/dashboard/ai-workflows/_components/workflow-editor.tsx +++ b/web/app/dashboard/ai-workflows/_components/workflow-editor.tsx @@ -19,6 +19,11 @@ import { useCallback, useEffect, useMemo, useState } from "react" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" +import { + ResizableHandle, + ResizablePanel, + ResizablePanelGroup, +} from "@/components/ui/resizable" import type { AIWorkflowDefinition, AIWorkflowNodeSpec } from "@/lib/api/admin" import { fromApiDefinition, @@ -172,70 +177,77 @@ export function WorkflowEditor({ } return ( -
- -
- setSelectedNodeId(node.id)} - fitView - > - - - - -
- - {validation.valid ? "Valid draft" : `${validation.errors.length} issues`} - -
-
- + + + +
+ setSelectedNodeId(node.id)} + fitView > - Sync definition - -
- -
+ + + + +
+ + {validation.valid ? "Valid draft" : `${validation.errors.length} issues`} + +
+ + + + + + ) }