@mastra/client-js 1.44.0 → 1.44.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7607,12 +7607,14 @@ var MastraClient = class extends BaseResource {
7607
7607
  });
7608
7608
  }
7609
7609
  /**
7610
- * Lists results for a dataset experiment
7610
+ * Lists results for a dataset experiment.
7611
+ * `tags` restricts the list to results that have all of the given tags.
7611
7612
  */
7612
- listDatasetExperimentResults(datasetId, experimentId, pagination) {
7613
+ listDatasetExperimentResults(datasetId, experimentId, options) {
7613
7614
  const searchParams = new URLSearchParams();
7614
- if (pagination?.page !== void 0) searchParams.set("page", String(pagination.page));
7615
- if (pagination?.perPage !== void 0) searchParams.set("perPage", String(pagination.perPage));
7615
+ if (options?.page !== void 0) searchParams.set("page", String(options.page));
7616
+ if (options?.perPage !== void 0) searchParams.set("perPage", String(options.perPage));
7617
+ for (const tag of options?.tags ?? []) searchParams.append("tags", tag);
7616
7618
  const qs = searchParams.toString();
7617
7619
  return this.request(`/datasets/${encodeURIComponent(datasetId)}/experiments/${encodeURIComponent(experimentId)}/results${qs ? `?${qs}` : ""}`);
7618
7620
  }