feat:专家智能体评选分组和维度删除功能
This commit is contained in:
@@ -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