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

// src/langwatch-api-simulation-runs.ts
async function listSimulationRuns(params) {
  const query = new URLSearchParams();
  if (params?.scenarioSetId) query.set("scenarioSetId", params.scenarioSetId);
  if (params?.batchRunId) query.set("batchRunId", params.batchRunId);
  if (params?.limit) query.set("limit", String(params.limit));
  const qs = query.toString() ? `?${query}` : "";
  return makeRequest("GET", `/api/simulation-runs${qs}`);
}
async function getSimulationRun(scenarioRunId) {
  return makeRequest(
    "GET",
    `/api/simulation-runs/${encodeURIComponent(scenarioRunId)}`
  );
}

export {
  listSimulationRuns,
  getSimulationRun
};
//# sourceMappingURL=chunk-ESGZVPPC.js.map