+
+
+
+ 已分配:{{ (agent.tools || []).length }} 个工具
+
@@ -198,6 +220,12 @@ import ProviderSelector from '@/components/shared/ProviderSelector.vue'
type ToolOption = { title: string; value: string }
+type ToolGroup = {
+ key: string
+ label: string
+ options: ToolOption[]
+}
+
type SubAgentItem = {
__key: string
name: string
@@ -206,6 +234,9 @@ type SubAgentItem = {
tools: string[]
enabled: boolean
provider_id?: string
+ // UI-only: current tool group selection state
+ __tool_group?: string
+ __tool_group_selected?: string[]
}
type SubAgentConfig = {
@@ -240,7 +271,58 @@ const cfg = ref