import request from '@/utils/request'

export function getEvalPackages() {
  return request.get('/eval/packages')
}

export function getEvalModels() {
  return request.get('/eval/models')
}

export function runEvaluation(payload) {
  return request.post('/eval/run', payload)
}

export function getEvalRecords() {
  return request.get('/eval/records')
}

export function getEvalRecord(recordId) {
  return request.get(`/eval/records/${recordId}`)
}

export function deleteEvalRecord(recordId) {
  return request.delete(`/eval/records/${recordId}`)
}
