feat:专家智能体评选分组和维度删除功能
This commit is contained in:
@@ -292,6 +292,15 @@ export const useAgentsStore = defineStore('agents', () => {
|
||||
confirmedAgentGroupsMap.value.set(taskId, groups)
|
||||
}
|
||||
|
||||
// 删除指定任务的某个agent组合
|
||||
function removeConfirmedAgentGroup(taskId: string, groupIndex: number) {
|
||||
const groups = confirmedAgentGroupsMap.value.get(taskId) || []
|
||||
if (groupIndex >= 0 && groupIndex < groups.length) {
|
||||
groups.splice(groupIndex, 1)
|
||||
confirmedAgentGroupsMap.value.set(taskId, groups)
|
||||
}
|
||||
}
|
||||
|
||||
const planModificationWindow = ref(false)
|
||||
const planTaskWindow = ref(false)
|
||||
const agentAllocationDialog = ref(false)
|
||||
@@ -645,6 +654,7 @@ export const useAgentsStore = defineStore('agents', () => {
|
||||
clearConfirmedAgentGroups,
|
||||
clearAllConfirmedAgentGroups,
|
||||
setConfirmedAgentGroups,
|
||||
removeConfirmedAgentGroup,
|
||||
// 停止填充状态
|
||||
hasStoppedFilling,
|
||||
setHasStoppedFilling,
|
||||
|
||||
@@ -424,6 +424,16 @@ export const useSelectionStore = defineStore('selection', () => {
|
||||
return agentTaskProcessMap.value.get(taskId)?.has(groupKey) || false
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除指定任务的某个 agent 组合的 TaskProcess 数据
|
||||
* @param taskId 任务 ID
|
||||
* @param agents Agent 列表
|
||||
*/
|
||||
function removeAgentTaskProcess(taskId: string, agents: string[]) {
|
||||
const groupKey = getAgentGroupKey(agents)
|
||||
agentTaskProcessMap.value.get(taskId)?.delete(groupKey)
|
||||
}
|
||||
|
||||
/**
|
||||
* 清除指定任务的所有 agent 组合 TaskProcess 数据
|
||||
* @param taskId 任务 ID
|
||||
@@ -656,6 +666,7 @@ export const useSelectionStore = defineStore('selection', () => {
|
||||
setAgentTaskProcess,
|
||||
getAgentTaskProcess,
|
||||
hasAgentTaskProcess,
|
||||
removeAgentTaskProcess,
|
||||
clearAgentTaskProcess,
|
||||
getAgentCombinations,
|
||||
clearAllAgentTaskProcess,
|
||||
|
||||
Reference in New Issue
Block a user