import {
  makeRequest
} from "./chunk-CAY57CKF.js";

// src/langwatch-api-evaluators.ts
function getEvaluatorType(evaluator) {
  return evaluator.config?.evaluatorType;
}
async function listEvaluators() {
  return makeRequest("GET", "/api/evaluators");
}
async function getEvaluator(idOrSlug) {
  return makeRequest(
    "GET",
    `/api/evaluators/${encodeURIComponent(idOrSlug)}`
  );
}
async function createEvaluator(data) {
  return makeRequest("POST", "/api/evaluators", data);
}
async function updateEvaluator(params) {
  const { id, ...data } = params;
  return makeRequest(
    "PUT",
    `/api/evaluators/${encodeURIComponent(id)}`,
    data
  );
}
async function deleteEvaluator(idOrSlug) {
  return makeRequest(
    "DELETE",
    `/api/evaluators/${encodeURIComponent(idOrSlug)}`
  );
}

export {
  getEvaluatorType,
  listEvaluators,
  getEvaluator,
  createEvaluator,
  updateEvaluator,
  deleteEvaluator
};
//# sourceMappingURL=chunk-GWEW5XON.js.map