import request from '@/utils/request'

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

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}`)
}
