opik 1.10.19 → 1.10.21

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
@@ -3149,6 +3149,10 @@ interface DatasetItemUpdate {
3149
3149
  description?: string;
3150
3150
  /** Tags */
3151
3151
  tags?: string[];
3152
+ /** Tags to add */
3153
+ tagsToAdd?: string[];
3154
+ /** Tags to remove */
3155
+ tagsToRemove?: string[];
3152
3156
  /** Evaluators */
3153
3157
  evaluators?: EvaluatorItem[];
3154
3158
  executionPolicy?: ExecutionPolicy;
@@ -3612,7 +3616,12 @@ type ExperimentType = (typeof ExperimentType)[keyof typeof ExperimentType];
3612
3616
  interface ExperimentUpdate {
3613
3617
  name?: string;
3614
3618
  metadata?: JsonNode;
3619
+ /** Tags */
3615
3620
  tags?: string[];
3621
+ /** Tags to add */
3622
+ tagsToAdd?: string[];
3623
+ /** Tags to remove */
3624
+ tagsToRemove?: string[];
3616
3625
  type?: ExperimentUpdateType;
3617
3626
  /** The status of the experiment */
3618
3627
  status?: ExperimentUpdateStatus;
@@ -3824,6 +3833,10 @@ interface FeedbackScoreNames {
3824
3833
  scores?: ScoreName[];
3825
3834
  }
3826
3835
 
3836
+ interface FeedbackScoreNamesPublic {
3837
+ scores?: ScoreNamePublic[];
3838
+ }
3839
+
3827
3840
  /**
3828
3841
  * Aggregated feedback scores from all spans in this trace, averaged by score name
3829
3842
  */
@@ -4633,7 +4646,7 @@ interface PromptVersionUpdate {
4633
4646
  * - If merge_tags is true, these tags will be added to existing tags.
4634
4647
  * - If merge_tags is false, these tags will replace all existing tags.
4635
4648
  * - null: preserve existing tags (no change).
4636
- * - empty set: clear all tags merge_tags is false.
4649
+ * - empty set: clear all tags when merge_tags is false.
4637
4650
  */
4638
4651
  tags?: string[];
4639
4652
  }
@@ -4704,6 +4717,11 @@ interface ScoreName {
4704
4717
  type?: string;
4705
4718
  }
4706
4719
 
4720
+ interface ScoreNamePublic {
4721
+ name?: string;
4722
+ type?: string;
4723
+ }
4724
+
4707
4725
  interface ServiceTogglesConfig {
4708
4726
  pythonEvaluatorEnabled: boolean;
4709
4727
  traceThreadPythonEvaluatorEnabled: boolean;
@@ -4969,7 +4987,12 @@ interface SpanUpdate$1 {
4969
4987
  metadata?: JsonListString;
4970
4988
  model?: string;
4971
4989
  provider?: string;
4990
+ /** Tags */
4972
4991
  tags?: string[];
4992
+ /** Tags to add */
4993
+ tagsToAdd?: string[];
4994
+ /** Tags to remove */
4995
+ tagsToRemove?: string[];
4973
4996
  usage?: Record<string, number>;
4974
4997
  totalEstimatedCost?: number;
4975
4998
  errorInfo?: ErrorInfo;
@@ -5449,6 +5472,8 @@ type TraceThreadStatus = (typeof TraceThreadStatus)[keyof typeof TraceThreadStat
5449
5472
 
5450
5473
  interface TraceThreadUpdate {
5451
5474
  tags?: string[];
5475
+ tagsToAdd?: string[];
5476
+ tagsToRemove?: string[];
5452
5477
  }
5453
5478
 
5454
5479
  interface TraceThreadUserDefinedMetricPythonCode {
@@ -5473,7 +5498,12 @@ interface TraceUpdate {
5473
5498
  input?: JsonListString;
5474
5499
  output?: JsonListString;
5475
5500
  metadata?: JsonListString;
5501
+ /** Tags */
5476
5502
  tags?: string[];
5503
+ /** Tags to add */
5504
+ tagsToAdd?: string[];
5505
+ /** Tags to remove */
5506
+ tagsToRemove?: string[];
5477
5507
  errorInfo?: ErrorInfo;
5478
5508
  threadId?: string;
5479
5509
  ttft?: number;
@@ -7017,7 +7047,7 @@ declare class ExperimentsClient {
7017
7047
  * @example
7018
7048
  * await client.experiments.findFeedbackScoreNames()
7019
7049
  */
7020
- findFeedbackScoreNames(request?: FindFeedbackScoreNamesRequest, requestOptions?: ExperimentsClient.RequestOptions): HttpResponsePromise<string[]>;
7050
+ findFeedbackScoreNames(request?: FindFeedbackScoreNamesRequest, requestOptions?: ExperimentsClient.RequestOptions): HttpResponsePromise<FeedbackScoreNamesPublic>;
7021
7051
  private __findFeedbackScoreNames;
7022
7052
  /**
7023
7053
  * Find experiments grouped by specified fields
@@ -8252,7 +8282,7 @@ declare class SpansClient {
8252
8282
  * @example
8253
8283
  * await client.spans.findFeedbackScoreNames1()
8254
8284
  */
8255
- findFeedbackScoreNames1(request?: FindFeedbackScoreNames1Request, requestOptions?: SpansClient.RequestOptions): HttpResponsePromise<string[]>;
8285
+ findFeedbackScoreNames1(request?: FindFeedbackScoreNames1Request, requestOptions?: SpansClient.RequestOptions): HttpResponsePromise<FeedbackScoreNamesPublic>;
8256
8286
  private __findFeedbackScoreNames1;
8257
8287
  /**
8258
8288
  * Get span comment
@@ -8672,7 +8702,7 @@ declare class TracesClient {
8672
8702
  * @example
8673
8703
  * await client.traces.findFeedbackScoreNames2()
8674
8704
  */
8675
- findFeedbackScoreNames2(request?: FindFeedbackScoreNames2Request, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<string[]>;
8705
+ findFeedbackScoreNames2(request?: FindFeedbackScoreNames2Request, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<FeedbackScoreNamesPublic>;
8676
8706
  private __findFeedbackScoreNames2;
8677
8707
  /**
8678
8708
  * Find Trace Threads Feedback Score names
@@ -8683,7 +8713,7 @@ declare class TracesClient {
8683
8713
  * @example
8684
8714
  * await client.traces.findTraceThreadsFeedbackScoreNames()
8685
8715
  */
8686
- findTraceThreadsFeedbackScoreNames(request?: FindTraceThreadsFeedbackScoreNamesRequest, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<string[]>;
8716
+ findTraceThreadsFeedbackScoreNames(request?: FindTraceThreadsFeedbackScoreNamesRequest, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<FeedbackScoreNamesPublic>;
8687
8717
  private __findTraceThreadsFeedbackScoreNames;
8688
8718
  /**
8689
8719
  * Get trace stats
package/dist/index.d.ts CHANGED
@@ -3149,6 +3149,10 @@ interface DatasetItemUpdate {
3149
3149
  description?: string;
3150
3150
  /** Tags */
3151
3151
  tags?: string[];
3152
+ /** Tags to add */
3153
+ tagsToAdd?: string[];
3154
+ /** Tags to remove */
3155
+ tagsToRemove?: string[];
3152
3156
  /** Evaluators */
3153
3157
  evaluators?: EvaluatorItem[];
3154
3158
  executionPolicy?: ExecutionPolicy;
@@ -3612,7 +3616,12 @@ type ExperimentType = (typeof ExperimentType)[keyof typeof ExperimentType];
3612
3616
  interface ExperimentUpdate {
3613
3617
  name?: string;
3614
3618
  metadata?: JsonNode;
3619
+ /** Tags */
3615
3620
  tags?: string[];
3621
+ /** Tags to add */
3622
+ tagsToAdd?: string[];
3623
+ /** Tags to remove */
3624
+ tagsToRemove?: string[];
3616
3625
  type?: ExperimentUpdateType;
3617
3626
  /** The status of the experiment */
3618
3627
  status?: ExperimentUpdateStatus;
@@ -3824,6 +3833,10 @@ interface FeedbackScoreNames {
3824
3833
  scores?: ScoreName[];
3825
3834
  }
3826
3835
 
3836
+ interface FeedbackScoreNamesPublic {
3837
+ scores?: ScoreNamePublic[];
3838
+ }
3839
+
3827
3840
  /**
3828
3841
  * Aggregated feedback scores from all spans in this trace, averaged by score name
3829
3842
  */
@@ -4633,7 +4646,7 @@ interface PromptVersionUpdate {
4633
4646
  * - If merge_tags is true, these tags will be added to existing tags.
4634
4647
  * - If merge_tags is false, these tags will replace all existing tags.
4635
4648
  * - null: preserve existing tags (no change).
4636
- * - empty set: clear all tags merge_tags is false.
4649
+ * - empty set: clear all tags when merge_tags is false.
4637
4650
  */
4638
4651
  tags?: string[];
4639
4652
  }
@@ -4704,6 +4717,11 @@ interface ScoreName {
4704
4717
  type?: string;
4705
4718
  }
4706
4719
 
4720
+ interface ScoreNamePublic {
4721
+ name?: string;
4722
+ type?: string;
4723
+ }
4724
+
4707
4725
  interface ServiceTogglesConfig {
4708
4726
  pythonEvaluatorEnabled: boolean;
4709
4727
  traceThreadPythonEvaluatorEnabled: boolean;
@@ -4969,7 +4987,12 @@ interface SpanUpdate$1 {
4969
4987
  metadata?: JsonListString;
4970
4988
  model?: string;
4971
4989
  provider?: string;
4990
+ /** Tags */
4972
4991
  tags?: string[];
4992
+ /** Tags to add */
4993
+ tagsToAdd?: string[];
4994
+ /** Tags to remove */
4995
+ tagsToRemove?: string[];
4973
4996
  usage?: Record<string, number>;
4974
4997
  totalEstimatedCost?: number;
4975
4998
  errorInfo?: ErrorInfo;
@@ -5449,6 +5472,8 @@ type TraceThreadStatus = (typeof TraceThreadStatus)[keyof typeof TraceThreadStat
5449
5472
 
5450
5473
  interface TraceThreadUpdate {
5451
5474
  tags?: string[];
5475
+ tagsToAdd?: string[];
5476
+ tagsToRemove?: string[];
5452
5477
  }
5453
5478
 
5454
5479
  interface TraceThreadUserDefinedMetricPythonCode {
@@ -5473,7 +5498,12 @@ interface TraceUpdate {
5473
5498
  input?: JsonListString;
5474
5499
  output?: JsonListString;
5475
5500
  metadata?: JsonListString;
5501
+ /** Tags */
5476
5502
  tags?: string[];
5503
+ /** Tags to add */
5504
+ tagsToAdd?: string[];
5505
+ /** Tags to remove */
5506
+ tagsToRemove?: string[];
5477
5507
  errorInfo?: ErrorInfo;
5478
5508
  threadId?: string;
5479
5509
  ttft?: number;
@@ -7017,7 +7047,7 @@ declare class ExperimentsClient {
7017
7047
  * @example
7018
7048
  * await client.experiments.findFeedbackScoreNames()
7019
7049
  */
7020
- findFeedbackScoreNames(request?: FindFeedbackScoreNamesRequest, requestOptions?: ExperimentsClient.RequestOptions): HttpResponsePromise<string[]>;
7050
+ findFeedbackScoreNames(request?: FindFeedbackScoreNamesRequest, requestOptions?: ExperimentsClient.RequestOptions): HttpResponsePromise<FeedbackScoreNamesPublic>;
7021
7051
  private __findFeedbackScoreNames;
7022
7052
  /**
7023
7053
  * Find experiments grouped by specified fields
@@ -8252,7 +8282,7 @@ declare class SpansClient {
8252
8282
  * @example
8253
8283
  * await client.spans.findFeedbackScoreNames1()
8254
8284
  */
8255
- findFeedbackScoreNames1(request?: FindFeedbackScoreNames1Request, requestOptions?: SpansClient.RequestOptions): HttpResponsePromise<string[]>;
8285
+ findFeedbackScoreNames1(request?: FindFeedbackScoreNames1Request, requestOptions?: SpansClient.RequestOptions): HttpResponsePromise<FeedbackScoreNamesPublic>;
8256
8286
  private __findFeedbackScoreNames1;
8257
8287
  /**
8258
8288
  * Get span comment
@@ -8672,7 +8702,7 @@ declare class TracesClient {
8672
8702
  * @example
8673
8703
  * await client.traces.findFeedbackScoreNames2()
8674
8704
  */
8675
- findFeedbackScoreNames2(request?: FindFeedbackScoreNames2Request, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<string[]>;
8705
+ findFeedbackScoreNames2(request?: FindFeedbackScoreNames2Request, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<FeedbackScoreNamesPublic>;
8676
8706
  private __findFeedbackScoreNames2;
8677
8707
  /**
8678
8708
  * Find Trace Threads Feedback Score names
@@ -8683,7 +8713,7 @@ declare class TracesClient {
8683
8713
  * @example
8684
8714
  * await client.traces.findTraceThreadsFeedbackScoreNames()
8685
8715
  */
8686
- findTraceThreadsFeedbackScoreNames(request?: FindTraceThreadsFeedbackScoreNamesRequest, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<string[]>;
8716
+ findTraceThreadsFeedbackScoreNames(request?: FindTraceThreadsFeedbackScoreNamesRequest, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<FeedbackScoreNamesPublic>;
8687
8717
  private __findTraceThreadsFeedbackScoreNames;
8688
8718
  /**
8689
8719
  * Get trace stats