opik 1.9.6 → 1.9.8

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.d.cts CHANGED
@@ -242,6 +242,23 @@ interface DatasetItemBatchWrite {
242
242
  items: DatasetItemWrite[];
243
243
  }
244
244
 
245
+ /**
246
+ * This file was auto-generated by Fern from our API Definition.
247
+ */
248
+
249
+ /**
250
+ * @example
251
+ * {
252
+ * spanIds: ["span_ids"],
253
+ * enrichmentOptions: {}
254
+ * }
255
+ */
256
+ interface CreateDatasetItemsFromSpansRequest {
257
+ /** Set of span IDs to add to the dataset */
258
+ spanIds: string[];
259
+ enrichmentOptions: SpanEnrichmentOptions;
260
+ }
261
+
245
262
  /**
246
263
  * This file was auto-generated by Fern from our API Definition.
247
264
  */
@@ -3052,6 +3069,20 @@ interface DatasetItemWrite {
3052
3069
  data: JsonNode;
3053
3070
  }
3054
3071
 
3072
+ /**
3073
+ * This file was auto-generated by Fern from our API Definition.
3074
+ */
3075
+ /**
3076
+ * Options for enriching span data
3077
+ */
3078
+ interface SpanEnrichmentOptions {
3079
+ includeTags?: boolean;
3080
+ includeFeedbackScores?: boolean;
3081
+ includeComments?: boolean;
3082
+ includeUsage?: boolean;
3083
+ includeMetadata?: boolean;
3084
+ }
3085
+
3055
3086
  /**
3056
3087
  * This file was auto-generated by Fern from our API Definition.
3057
3088
  */
@@ -6158,6 +6189,21 @@ declare class Datasets {
6158
6189
  */
6159
6190
  createOrUpdateDatasetItems(request: DatasetItemBatchWrite, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
6160
6191
  private __createOrUpdateDatasetItems;
6192
+ /**
6193
+ * Create dataset items from spans with enriched metadata
6194
+ *
6195
+ * @param {string} datasetId
6196
+ * @param {OpikApi.CreateDatasetItemsFromSpansRequest} request
6197
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
6198
+ *
6199
+ * @example
6200
+ * await client.datasets.createDatasetItemsFromSpans("dataset_id", {
6201
+ * spanIds: ["span_ids"],
6202
+ * enrichmentOptions: {}
6203
+ * })
6204
+ */
6205
+ createDatasetItemsFromSpans(datasetId: string, request: CreateDatasetItemsFromSpansRequest, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
6206
+ private __createDatasetItemsFromSpans;
6161
6207
  /**
6162
6208
  * Create dataset items from traces with enriched metadata
6163
6209
  *
package/dist/index.d.ts CHANGED
@@ -242,6 +242,23 @@ interface DatasetItemBatchWrite {
242
242
  items: DatasetItemWrite[];
243
243
  }
244
244
 
245
+ /**
246
+ * This file was auto-generated by Fern from our API Definition.
247
+ */
248
+
249
+ /**
250
+ * @example
251
+ * {
252
+ * spanIds: ["span_ids"],
253
+ * enrichmentOptions: {}
254
+ * }
255
+ */
256
+ interface CreateDatasetItemsFromSpansRequest {
257
+ /** Set of span IDs to add to the dataset */
258
+ spanIds: string[];
259
+ enrichmentOptions: SpanEnrichmentOptions;
260
+ }
261
+
245
262
  /**
246
263
  * This file was auto-generated by Fern from our API Definition.
247
264
  */
@@ -3052,6 +3069,20 @@ interface DatasetItemWrite {
3052
3069
  data: JsonNode;
3053
3070
  }
3054
3071
 
3072
+ /**
3073
+ * This file was auto-generated by Fern from our API Definition.
3074
+ */
3075
+ /**
3076
+ * Options for enriching span data
3077
+ */
3078
+ interface SpanEnrichmentOptions {
3079
+ includeTags?: boolean;
3080
+ includeFeedbackScores?: boolean;
3081
+ includeComments?: boolean;
3082
+ includeUsage?: boolean;
3083
+ includeMetadata?: boolean;
3084
+ }
3085
+
3055
3086
  /**
3056
3087
  * This file was auto-generated by Fern from our API Definition.
3057
3088
  */
@@ -6158,6 +6189,21 @@ declare class Datasets {
6158
6189
  */
6159
6190
  createOrUpdateDatasetItems(request: DatasetItemBatchWrite, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
6160
6191
  private __createOrUpdateDatasetItems;
6192
+ /**
6193
+ * Create dataset items from spans with enriched metadata
6194
+ *
6195
+ * @param {string} datasetId
6196
+ * @param {OpikApi.CreateDatasetItemsFromSpansRequest} request
6197
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
6198
+ *
6199
+ * @example
6200
+ * await client.datasets.createDatasetItemsFromSpans("dataset_id", {
6201
+ * spanIds: ["span_ids"],
6202
+ * enrichmentOptions: {}
6203
+ * })
6204
+ */
6205
+ createDatasetItemsFromSpans(datasetId: string, request: CreateDatasetItemsFromSpansRequest, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
6206
+ private __createDatasetItemsFromSpans;
6161
6207
  /**
6162
6208
  * Create dataset items from traces with enriched metadata
6163
6209
  *