feat:专家智能体评选页面重构
This commit is contained in:
@@ -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
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user