feat:专家智能体评选分组和维度删除功能

This commit is contained in:
liailing1026
2026-03-01 22:41:19 +08:00
parent ceee955b44
commit f0f0d5bdcd
5 changed files with 122 additions and 11 deletions

View File

@@ -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,