"use strict";
// @ts-nocheck
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExperimentRuns = void 0;
const resource_js_1 = require("../../core/resource.cjs");
const pagination_js_1 = require("../../core/pagination.cjs");
const path_js_1 = require("../../internal/utils/path.cjs");
class ExperimentRuns extends resource_js_1.APIResource {
    /**
     * Returns a paginated page of dataset examples with runs from the requested
     * experiments. Response uses the canonical `{items, next_cursor}` envelope.
     */
    query(datasetID, body, options) {
        return this._client.getAPIList((0, path_js_1.path) `/v2/datasets/${datasetID}/experiment-runs`, (pagination_js_1.ItemsCursorPostPagination), { body, method: 'post', ...options });
    }
}
exports.ExperimentRuns = ExperimentRuns;
