opik 1.7.39 → 1.7.41

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.
@@ -610,6 +610,7 @@ interface ProjectWrite {
610
610
  name: string;
611
611
  visibility?: ProjectWriteVisibility;
612
612
  description?: string;
613
+ configuration?: ConfigurationWrite;
613
614
  }
614
615
 
615
616
  /**
@@ -1119,6 +1120,23 @@ interface TraceUpdate {
1119
1120
  threadId?: string;
1120
1121
  }
1121
1122
 
1123
+ /**
1124
+ * This file was auto-generated by Fern from our API Definition.
1125
+ */
1126
+ /**
1127
+ * @example
1128
+ * {
1129
+ * projectName: "project_name",
1130
+ * threadId: "thread_id",
1131
+ * names: ["names"]
1132
+ * }
1133
+ */
1134
+ interface DeleteThreadFeedbackScores {
1135
+ projectName: string;
1136
+ threadId: string;
1137
+ names: string[];
1138
+ }
1139
+
1122
1140
  /**
1123
1141
  * This file was auto-generated by Fern from our API Definition.
1124
1142
  */
@@ -1147,6 +1165,19 @@ interface FindFeedbackScoreNames2Request {
1147
1165
  projectId?: string;
1148
1166
  }
1149
1167
 
1168
+ /**
1169
+ * This file was auto-generated by Fern from our API Definition.
1170
+ */
1171
+ /**
1172
+ * @example
1173
+ * {
1174
+ * projectId: "project_id"
1175
+ * }
1176
+ */
1177
+ interface FindTraceThreadsFeedbackScoreNamesRequest {
1178
+ projectId: string;
1179
+ }
1180
+
1150
1181
  /**
1151
1182
  * This file was auto-generated by Fern from our API Definition.
1152
1183
  */
@@ -1181,12 +1212,31 @@ interface GetTraceThreadsRequest {
1181
1212
  * This file was auto-generated by Fern from our API Definition.
1182
1213
  */
1183
1214
 
1184
- interface TraceSearchStreamRequestPublic {
1215
+ /**
1216
+ * @example
1217
+ * {
1218
+ * scores: [{
1219
+ * threadId: "thread_id",
1220
+ * name: "name",
1221
+ * value: 1.1,
1222
+ * source: "ui"
1223
+ * }]
1224
+ * }
1225
+ */
1226
+ interface FeedbackScoreBatchThread {
1227
+ scores: FeedbackScoreBatchItemThread[];
1228
+ }
1229
+
1230
+ /**
1231
+ * This file was auto-generated by Fern from our API Definition.
1232
+ */
1233
+
1234
+ interface TraceThreadSearchStreamRequest {
1185
1235
  projectName?: string;
1186
1236
  projectId?: string;
1187
- filters?: TraceFilterPublic[];
1188
- lastRetrievedId?: string;
1189
- /** Max number of traces to be streamed */
1237
+ filters?: TraceThreadFilter[];
1238
+ lastRetrievedThreadModelId?: string;
1239
+ /** Max number of trace thread to be streamed */
1190
1240
  limit?: number;
1191
1241
  /** Truncate image included in either input, output or metadata */
1192
1242
  truncate?: boolean;
@@ -1195,17 +1245,16 @@ interface TraceSearchStreamRequestPublic {
1195
1245
  /**
1196
1246
  * This file was auto-generated by Fern from our API Definition.
1197
1247
  */
1198
- /**
1199
- * @example
1200
- * {
1201
- * intervalStart: "2024-01-15T09:30:00Z",
1202
- * intervalEnd: "2024-01-15T09:30:00Z"
1203
- * }
1204
- */
1205
- interface WorkspaceMetricsSummaryRequest {
1206
- projectIds?: string[];
1207
- intervalStart: Date;
1208
- intervalEnd: Date;
1248
+
1249
+ interface TraceSearchStreamRequestPublic {
1250
+ projectName?: string;
1251
+ projectId?: string;
1252
+ filters?: TraceFilterPublic[];
1253
+ lastRetrievedId?: string;
1254
+ /** Max number of traces to be streamed */
1255
+ limit?: number;
1256
+ /** Truncate image included in either input, output or metadata */
1257
+ truncate?: boolean;
1209
1258
  }
1210
1259
 
1211
1260
  /**
@@ -3092,6 +3141,53 @@ interface OptimizationPublic {
3092
3141
  lastUpdatedBy?: string;
3093
3142
  }
3094
3143
 
3144
+ /**
3145
+ * This file was auto-generated by Fern from our API Definition.
3146
+ */
3147
+ interface ConfigurationTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3148
+ seconds?: number;
3149
+ zero?: boolean;
3150
+ nano?: number;
3151
+ negative?: boolean;
3152
+ positive?: boolean;
3153
+ }
3154
+
3155
+ /**
3156
+ * This file was auto-generated by Fern from our API Definition.
3157
+ */
3158
+
3159
+ interface ConfigurationTimeoutToMarkThreadAsInactiveUnitsItem {
3160
+ durationEstimated?: boolean;
3161
+ duration?: ConfigurationTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3162
+ timeBased?: boolean;
3163
+ dateBased?: boolean;
3164
+ }
3165
+
3166
+ /**
3167
+ * This file was auto-generated by Fern from our API Definition.
3168
+ */
3169
+
3170
+ /**
3171
+ * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3172
+ */
3173
+ interface ConfigurationTimeoutToMarkThreadAsInactive {
3174
+ seconds?: number;
3175
+ zero?: boolean;
3176
+ nano?: number;
3177
+ negative?: boolean;
3178
+ positive?: boolean;
3179
+ units?: ConfigurationTimeoutToMarkThreadAsInactiveUnitsItem[];
3180
+ }
3181
+
3182
+ /**
3183
+ * This file was auto-generated by Fern from our API Definition.
3184
+ */
3185
+
3186
+ interface Configuration {
3187
+ /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3188
+ timeoutToMarkThreadAsInactive?: ConfigurationTimeoutToMarkThreadAsInactive;
3189
+ }
3190
+
3095
3191
  /**
3096
3192
  * This file was auto-generated by Fern from our API Definition.
3097
3193
  */
@@ -3101,6 +3197,100 @@ interface ErrorCountWithDeviation {
3101
3197
  deviationPercentage?: number;
3102
3198
  }
3103
3199
 
3200
+ /**
3201
+ * This file was auto-generated by Fern from our API Definition.
3202
+ */
3203
+ interface ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3204
+ seconds?: number;
3205
+ zero?: boolean;
3206
+ nano?: number;
3207
+ negative?: boolean;
3208
+ positive?: boolean;
3209
+ }
3210
+
3211
+ /**
3212
+ * This file was auto-generated by Fern from our API Definition.
3213
+ */
3214
+
3215
+ interface ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItem {
3216
+ durationEstimated?: boolean;
3217
+ duration?: ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3218
+ timeBased?: boolean;
3219
+ dateBased?: boolean;
3220
+ }
3221
+
3222
+ /**
3223
+ * This file was auto-generated by Fern from our API Definition.
3224
+ */
3225
+
3226
+ /**
3227
+ * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3228
+ */
3229
+ interface ConfigurationWriteTimeoutToMarkThreadAsInactive {
3230
+ seconds?: number;
3231
+ zero?: boolean;
3232
+ nano?: number;
3233
+ negative?: boolean;
3234
+ positive?: boolean;
3235
+ units?: ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItem[];
3236
+ }
3237
+
3238
+ /**
3239
+ * This file was auto-generated by Fern from our API Definition.
3240
+ */
3241
+
3242
+ interface ConfigurationWrite {
3243
+ /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3244
+ timeoutToMarkThreadAsInactive?: ConfigurationWriteTimeoutToMarkThreadAsInactive;
3245
+ }
3246
+
3247
+ /**
3248
+ * This file was auto-generated by Fern from our API Definition.
3249
+ */
3250
+ interface ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3251
+ seconds?: number;
3252
+ zero?: boolean;
3253
+ nano?: number;
3254
+ negative?: boolean;
3255
+ positive?: boolean;
3256
+ }
3257
+
3258
+ /**
3259
+ * This file was auto-generated by Fern from our API Definition.
3260
+ */
3261
+
3262
+ interface ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItem {
3263
+ durationEstimated?: boolean;
3264
+ duration?: ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3265
+ timeBased?: boolean;
3266
+ dateBased?: boolean;
3267
+ }
3268
+
3269
+ /**
3270
+ * This file was auto-generated by Fern from our API Definition.
3271
+ */
3272
+
3273
+ /**
3274
+ * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3275
+ */
3276
+ interface ConfigurationPublicTimeoutToMarkThreadAsInactive {
3277
+ seconds?: number;
3278
+ zero?: boolean;
3279
+ nano?: number;
3280
+ negative?: boolean;
3281
+ positive?: boolean;
3282
+ units?: ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItem[];
3283
+ }
3284
+
3285
+ /**
3286
+ * This file was auto-generated by Fern from our API Definition.
3287
+ */
3288
+
3289
+ interface ConfigurationPublic {
3290
+ /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3291
+ timeoutToMarkThreadAsInactive?: ConfigurationPublicTimeoutToMarkThreadAsInactive;
3292
+ }
3293
+
3104
3294
  /**
3105
3295
  * This file was auto-generated by Fern from our API Definition.
3106
3296
  */
@@ -3136,6 +3326,7 @@ interface ProjectPublic {
3136
3326
  lastUpdatedAt?: Date;
3137
3327
  lastUpdatedBy?: string;
3138
3328
  lastUpdatedTraceAt?: Date;
3329
+ configuration?: ConfigurationPublic;
3139
3330
  }
3140
3331
 
3141
3332
  /**
@@ -3228,6 +3419,53 @@ interface ProjectStatsSummaryItem {
3228
3419
  errorCount?: ErrorCountWithDeviation;
3229
3420
  }
3230
3421
 
3422
+ /**
3423
+ * This file was auto-generated by Fern from our API Definition.
3424
+ */
3425
+ interface ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3426
+ seconds?: number;
3427
+ zero?: boolean;
3428
+ nano?: number;
3429
+ negative?: boolean;
3430
+ positive?: boolean;
3431
+ }
3432
+
3433
+ /**
3434
+ * This file was auto-generated by Fern from our API Definition.
3435
+ */
3436
+
3437
+ interface ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItem {
3438
+ durationEstimated?: boolean;
3439
+ duration?: ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3440
+ timeBased?: boolean;
3441
+ dateBased?: boolean;
3442
+ }
3443
+
3444
+ /**
3445
+ * This file was auto-generated by Fern from our API Definition.
3446
+ */
3447
+
3448
+ /**
3449
+ * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3450
+ */
3451
+ interface ConfigurationDetailedTimeoutToMarkThreadAsInactive {
3452
+ seconds?: number;
3453
+ zero?: boolean;
3454
+ nano?: number;
3455
+ negative?: boolean;
3456
+ positive?: boolean;
3457
+ units?: ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItem[];
3458
+ }
3459
+
3460
+ /**
3461
+ * This file was auto-generated by Fern from our API Definition.
3462
+ */
3463
+
3464
+ interface ConfigurationDetailed {
3465
+ /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3466
+ timeoutToMarkThreadAsInactive?: ConfigurationDetailedTimeoutToMarkThreadAsInactive;
3467
+ }
3468
+
3231
3469
  /**
3232
3470
  * This file was auto-generated by Fern from our API Definition.
3233
3471
  */
@@ -3285,6 +3523,7 @@ interface ProjectDetailed {
3285
3523
  traceCount?: number;
3286
3524
  guardrailsFailedCount?: number;
3287
3525
  errorCount?: ErrorCountWithDeviationDetailed;
3526
+ configuration?: ConfigurationDetailed;
3288
3527
  }
3289
3528
 
3290
3529
  /**
@@ -3783,6 +4022,15 @@ interface TracePublic {
3783
4022
  llmSpanCount?: number;
3784
4023
  }
3785
4024
 
4025
+ /**
4026
+ * This file was auto-generated by Fern from our API Definition.
4027
+ */
4028
+ type TraceThreadStatus = "active" | "inactive";
4029
+ declare const TraceThreadStatus: {
4030
+ readonly Active: "active";
4031
+ readonly Inactive: "inactive";
4032
+ };
4033
+
3786
4034
  /**
3787
4035
  * This file was auto-generated by Fern from our API Definition.
3788
4036
  */
@@ -3790,15 +4038,21 @@ interface TracePublic {
3790
4038
  interface TraceThread {
3791
4039
  id?: string;
3792
4040
  projectId?: string;
4041
+ threadModelId?: string;
3793
4042
  startTime?: Date;
3794
4043
  endTime?: Date;
3795
4044
  duration?: number;
3796
4045
  firstMessage?: JsonNode;
3797
4046
  lastMessage?: JsonNode;
4047
+ feedbackScores?: FeedbackScore[];
4048
+ status?: TraceThreadStatus;
3798
4049
  numberOfMessages?: number;
3799
4050
  totalEstimatedCost?: number;
3800
4051
  usage?: Record<string, number>;
4052
+ comments?: Comment[];
4053
+ tags?: string[];
3801
4054
  lastUpdatedAt?: Date;
4055
+ lastUpdatedBy?: string;
3802
4056
  createdBy?: string;
3803
4057
  createdAt?: Date;
3804
4058
  }
@@ -3827,6 +4081,61 @@ interface TracePagePublic {
3827
4081
  sortableBy?: string[];
3828
4082
  }
3829
4083
 
4084
+ /**
4085
+ * This file was auto-generated by Fern from our API Definition.
4086
+ */
4087
+ type FeedbackScoreBatchItemThreadSource = "ui" | "sdk" | "online_scoring";
4088
+ declare const FeedbackScoreBatchItemThreadSource: {
4089
+ readonly Ui: "ui";
4090
+ readonly Sdk: "sdk";
4091
+ readonly OnlineScoring: "online_scoring";
4092
+ };
4093
+
4094
+ /**
4095
+ * This file was auto-generated by Fern from our API Definition.
4096
+ */
4097
+
4098
+ interface FeedbackScoreBatchItemThread {
4099
+ threadId: string;
4100
+ /** If null, the default project is used */
4101
+ projectName?: string;
4102
+ name: string;
4103
+ categoryName?: string;
4104
+ value: number;
4105
+ reason?: string;
4106
+ source: FeedbackScoreBatchItemThreadSource;
4107
+ }
4108
+
4109
+ /**
4110
+ * This file was auto-generated by Fern from our API Definition.
4111
+ */
4112
+ type TraceThreadFilterOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
4113
+ declare const TraceThreadFilterOperator: {
4114
+ readonly Contains: "contains";
4115
+ readonly NotContains: "not_contains";
4116
+ readonly StartsWith: "starts_with";
4117
+ readonly EndsWith: "ends_with";
4118
+ readonly EqualTo: "=";
4119
+ readonly NotEquals: "!=";
4120
+ readonly GreaterThan: ">";
4121
+ readonly GreaterThanOrEqualTo: ">=";
4122
+ readonly LessThan: "<";
4123
+ readonly LessThanOrEqualTo: "<=";
4124
+ readonly IsEmpty: "is_empty";
4125
+ readonly IsNotEmpty: "is_not_empty";
4126
+ };
4127
+
4128
+ /**
4129
+ * This file was auto-generated by Fern from our API Definition.
4130
+ */
4131
+
4132
+ interface TraceThreadFilter {
4133
+ field?: string;
4134
+ operator?: TraceThreadFilterOperator;
4135
+ key?: string;
4136
+ value?: string;
4137
+ }
4138
+
3830
4139
  /**
3831
4140
  * This file was auto-generated by Fern from our API Definition.
3832
4141
  */
@@ -3866,6 +4175,24 @@ interface Result {
3866
4175
  previous?: number;
3867
4176
  }
3868
4177
 
4178
+ /**
4179
+ * This file was auto-generated by Fern from our API Definition.
4180
+ */
4181
+ interface WorkspaceMetricsSummaryRequest {
4182
+ projectIds?: string[];
4183
+ intervalStart: Date;
4184
+ intervalEnd: Date;
4185
+ startBeforeEnd?: boolean;
4186
+ }
4187
+
4188
+ /**
4189
+ * This file was auto-generated by Fern from our API Definition.
4190
+ */
4191
+
4192
+ interface WorkspaceMetricResponse {
4193
+ results?: Result[];
4194
+ }
4195
+
3869
4196
  /**
3870
4197
  * This file was auto-generated by Fern from our API Definition.
3871
4198
  */
@@ -5480,6 +5807,22 @@ declare class Projects {
5480
5807
  */
5481
5808
  retrieveProject(request: ProjectRetrieveDetailed, requestOptions?: Projects.RequestOptions): HttpResponsePromise<ProjectDetailed>;
5482
5809
  private __retrieveProject;
5810
+ /**
5811
+ * Upsert project configurations
5812
+ *
5813
+ * @param {string} id
5814
+ * @param {OpikApi.Configuration} request
5815
+ * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
5816
+ *
5817
+ * @throws {@link OpikApi.BadRequestError}
5818
+ * @throws {@link OpikApi.NotFoundError}
5819
+ * @throws {@link OpikApi.UnprocessableEntityError}
5820
+ *
5821
+ * @example
5822
+ * await client.projects.upsertProjectConfigurations("id", {})
5823
+ */
5824
+ upsertProjectConfigurations(id: string, request: Configuration, requestOptions?: Projects.RequestOptions): HttpResponsePromise<void>;
5825
+ private __upsertProjectConfigurations;
5483
5826
  protected _getCustomAuthorizationHeaders(): Promise<{
5484
5827
  Authorization: string | undefined;
5485
5828
  }>;
@@ -6012,6 +6355,20 @@ declare namespace Traces {
6012
6355
  declare class Traces {
6013
6356
  protected readonly _options: Traces.Options;
6014
6357
  constructor(_options?: Traces.Options);
6358
+ /**
6359
+ * Add thread comment
6360
+ *
6361
+ * @param {string} id
6362
+ * @param {OpikApi.Comment} request
6363
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6364
+ *
6365
+ * @example
6366
+ * await client.traces.addThreadComment("id", {
6367
+ * text: "text"
6368
+ * })
6369
+ */
6370
+ addThreadComment(id: string, request: Comment, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6371
+ private __addThreadComment;
6015
6372
  /**
6016
6373
  * Add trace comment
6017
6374
  *
@@ -6048,6 +6405,8 @@ declare class Traces {
6048
6405
  * @param {OpikApi.TraceThreadIdentifier} request
6049
6406
  * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6050
6407
  *
6408
+ * @throws {@link OpikApi.NotFoundError}
6409
+ *
6051
6410
  * @example
6052
6411
  * await client.traces.closeTraceThread({
6053
6412
  * threadId: "thread_id"
@@ -6128,6 +6487,34 @@ declare class Traces {
6128
6487
  */
6129
6488
  updateTrace(id: string, request?: TraceUpdate, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6130
6489
  private __updateTrace;
6490
+ /**
6491
+ * Delete thread comments
6492
+ *
6493
+ * @param {OpikApi.BatchDelete} request
6494
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6495
+ *
6496
+ * @example
6497
+ * await client.traces.deleteThreadComments({
6498
+ * ids: ["ids"]
6499
+ * })
6500
+ */
6501
+ deleteThreadComments(request: BatchDelete, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6502
+ private __deleteThreadComments;
6503
+ /**
6504
+ * Delete thread feedback scores
6505
+ *
6506
+ * @param {OpikApi.DeleteThreadFeedbackScores} request
6507
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6508
+ *
6509
+ * @example
6510
+ * await client.traces.deleteThreadFeedbackScores({
6511
+ * projectName: "project_name",
6512
+ * threadId: "thread_id",
6513
+ * names: ["names"]
6514
+ * })
6515
+ */
6516
+ deleteThreadFeedbackScores(request: DeleteThreadFeedbackScores, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6517
+ private __deleteThreadFeedbackScores;
6131
6518
  /**
6132
6519
  * Delete trace comments
6133
6520
  *
@@ -6192,6 +6579,19 @@ declare class Traces {
6192
6579
  */
6193
6580
  findFeedbackScoreNames2(request?: FindFeedbackScoreNames2Request, requestOptions?: Traces.RequestOptions): HttpResponsePromise<string[]>;
6194
6581
  private __findFeedbackScoreNames2;
6582
+ /**
6583
+ * Find Trace Threads Feedback Score names
6584
+ *
6585
+ * @param {OpikApi.FindTraceThreadsFeedbackScoreNamesRequest} request
6586
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6587
+ *
6588
+ * @example
6589
+ * await client.traces.findTraceThreadsFeedbackScoreNames({
6590
+ * projectId: "project_id"
6591
+ * })
6592
+ */
6593
+ findTraceThreadsFeedbackScoreNames(request: FindTraceThreadsFeedbackScoreNamesRequest, requestOptions?: Traces.RequestOptions): HttpResponsePromise<string[]>;
6594
+ private __findTraceThreadsFeedbackScoreNames;
6195
6595
  /**
6196
6596
  * Get trace stats
6197
6597
  *
@@ -6203,6 +6603,20 @@ declare class Traces {
6203
6603
  */
6204
6604
  getTraceStats(request?: GetTraceStatsRequest, requestOptions?: Traces.RequestOptions): HttpResponsePromise<ProjectStatsPublic>;
6205
6605
  private __getTraceStats;
6606
+ /**
6607
+ * Get thread comment
6608
+ *
6609
+ * @param {string} commentId
6610
+ * @param {string} threadId
6611
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6612
+ *
6613
+ * @throws {@link OpikApi.NotFoundError}
6614
+ *
6615
+ * @example
6616
+ * await client.traces.getThreadComment("commentId", "threadId")
6617
+ */
6618
+ getThreadComment(commentId: string, threadId: string, requestOptions?: Traces.RequestOptions): HttpResponsePromise<Comment>;
6619
+ private __getThreadComment;
6206
6620
  /**
6207
6621
  * Get trace comment
6208
6622
  *
@@ -6256,6 +6670,24 @@ declare class Traces {
6256
6670
  */
6257
6671
  openTraceThread(request: TraceThreadIdentifier, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6258
6672
  private __openTraceThread;
6673
+ /**
6674
+ * Batch feedback scoring for threads
6675
+ *
6676
+ * @param {OpikApi.FeedbackScoreBatchThread} request
6677
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6678
+ *
6679
+ * @example
6680
+ * await client.traces.scoreBatchOfThreads({
6681
+ * scores: [{
6682
+ * threadId: "thread_id",
6683
+ * name: "name",
6684
+ * value: 1.1,
6685
+ * source: "ui"
6686
+ * }]
6687
+ * })
6688
+ */
6689
+ scoreBatchOfThreads(request: FeedbackScoreBatchThread, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6690
+ private __scoreBatchOfThreads;
6259
6691
  /**
6260
6692
  * Batch feedback scoring for traces
6261
6693
  *
@@ -6274,6 +6706,12 @@ declare class Traces {
6274
6706
  */
6275
6707
  scoreBatchOfTraces(request: FeedbackScoreBatch, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6276
6708
  private __scoreBatchOfTraces;
6709
+ /**
6710
+ * Search trace threads
6711
+ * @throws {@link OpikApi.BadRequestError}
6712
+ */
6713
+ searchTraceThreads(request?: TraceThreadSearchStreamRequest, requestOptions?: Traces.RequestOptions): HttpResponsePromise<stream.Readable>;
6714
+ private __searchTraceThreads;
6277
6715
  /**
6278
6716
  * Search traces
6279
6717
  * @throws {@link OpikApi.BadRequestError}
@@ -6281,6 +6719,38 @@ declare class Traces {
6281
6719
  */
6282
6720
  searchTraces(request?: TraceSearchStreamRequestPublic, requestOptions?: Traces.RequestOptions): HttpResponsePromise<stream.Readable>;
6283
6721
  private __searchTraces;
6722
+ /**
6723
+ * Update thread
6724
+ *
6725
+ * @param {string} threadModelId
6726
+ * @param {OpikApi.Comment} request
6727
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6728
+ *
6729
+ * @throws {@link OpikApi.NotFoundError}
6730
+ *
6731
+ * @example
6732
+ * await client.traces.updateThread("threadModelId", {
6733
+ * text: "text"
6734
+ * })
6735
+ */
6736
+ updateThread(threadModelId: string, request: Comment, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6737
+ private __updateThread;
6738
+ /**
6739
+ * Update thread comment by id
6740
+ *
6741
+ * @param {string} commentId
6742
+ * @param {OpikApi.Comment} request
6743
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6744
+ *
6745
+ * @throws {@link OpikApi.NotFoundError}
6746
+ *
6747
+ * @example
6748
+ * await client.traces.updateThreadComment("commentId", {
6749
+ * text: "text"
6750
+ * })
6751
+ */
6752
+ updateThreadComment(commentId: string, request: Comment, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6753
+ private __updateThreadComment;
6284
6754
  /**
6285
6755
  * Update trace comment by id
6286
6756
  *
@@ -6337,6 +6807,54 @@ declare namespace Workspaces {
6337
6807
  declare class Workspaces {
6338
6808
  protected readonly _options: Workspaces.Options;
6339
6809
  constructor(_options?: Workspaces.Options);
6810
+ /**
6811
+ * Get costs summary
6812
+ *
6813
+ * @param {OpikApi.WorkspaceMetricsSummaryRequest} request
6814
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6815
+ *
6816
+ * @throws {@link OpikApi.BadRequestError}
6817
+ *
6818
+ * @example
6819
+ * await client.workspaces.costsSummary({
6820
+ * intervalStart: "2024-01-15T09:30:00Z",
6821
+ * intervalEnd: "2024-01-15T09:30:00Z"
6822
+ * })
6823
+ */
6824
+ costsSummary(request: WorkspaceMetricsSummaryRequest, requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<Result>;
6825
+ private __costsSummary;
6826
+ /**
6827
+ * Get cost daily data
6828
+ *
6829
+ * @param {OpikApi.WorkspaceMetricsSummaryRequest} request
6830
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6831
+ *
6832
+ * @throws {@link OpikApi.BadRequestError}
6833
+ *
6834
+ * @example
6835
+ * await client.workspaces.getCost({
6836
+ * intervalStart: "2024-01-15T09:30:00Z",
6837
+ * intervalEnd: "2024-01-15T09:30:00Z"
6838
+ * })
6839
+ */
6840
+ getCost(request: WorkspaceMetricsSummaryRequest, requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<WorkspaceMetricResponse>;
6841
+ private __getCost;
6842
+ /**
6843
+ * Get metric daily data
6844
+ *
6845
+ * @param {OpikApi.WorkspaceMetricsSummaryRequest} request
6846
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6847
+ *
6848
+ * @throws {@link OpikApi.BadRequestError}
6849
+ *
6850
+ * @example
6851
+ * await client.workspaces.getMetric({
6852
+ * intervalStart: "2024-01-15T09:30:00Z",
6853
+ * intervalEnd: "2024-01-15T09:30:00Z"
6854
+ * })
6855
+ */
6856
+ getMetric(request: WorkspaceMetricsSummaryRequest, requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<WorkspaceMetricResponse>;
6857
+ private __getMetric;
6340
6858
  /**
6341
6859
  * Get metrics summary
6342
6860
  *