feat:专家智能体评选页面重构

This commit is contained in:
liailing1026
2026-03-01 16:58:31 +08:00
parent f267462e70
commit ceee955b44
3 changed files with 987 additions and 263 deletions

View File

@@ -552,6 +552,43 @@ class Api {
agentScores,
}
}
/**
* 删除评估维度
* @param taskId 任务ID
* @param stepId 步骤ID可选不传则删除所有步骤中的该维度
* @param aspectName 要删除的维度名称
* @returns 是否删除成功
*/
agentSelectModifyDeleteAspect = async (
taskId: string,
aspectName: string,
stepId?: string
): Promise<boolean> => {
if (!websocket.connected) {
throw new Error('WebSocket未连接')
}
try {
const rawResponse = await websocket.send(
'agent_select_modify_delete_aspect',
{
task_id: taskId,
step_id: stepId || '',
aspect_name: aspectName,
},
undefined,
undefined
)
const response = this.extractResponse<{ status: string }>(rawResponse)
return response?.status === 'success' || false
} catch (error) {
console.error('删除维度失败:', error)
return false
}
}
/**
* 向正在执行的任务追加新步骤
* @param executionId 执行ID