opik 1.9.18 → 1.9.20
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.cjs +25 -25
- package/dist/index.d.cts +110 -6
- package/dist/index.d.ts +110 -6
- package/dist/index.js +25 -25
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2188,6 +2188,14 @@ interface WorkspaceNameHolder {
|
|
|
2188
2188
|
workspaceName?: string;
|
|
2189
2189
|
}
|
|
2190
2190
|
|
|
2191
|
+
/**
|
|
2192
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2193
|
+
*/
|
|
2194
|
+
interface ImageUrl {
|
|
2195
|
+
url: string;
|
|
2196
|
+
detail?: string;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2191
2199
|
/**
|
|
2192
2200
|
* This file was auto-generated by Fern from our API Definition.
|
|
2193
2201
|
*/
|
|
@@ -2222,9 +2230,21 @@ declare const LlmAsJudgeMessageRole: {
|
|
|
2222
2230
|
|
|
2223
2231
|
interface LlmAsJudgeMessage {
|
|
2224
2232
|
role: LlmAsJudgeMessageRole;
|
|
2225
|
-
content
|
|
2226
|
-
|
|
2233
|
+
content?: string;
|
|
2234
|
+
contentArray?: LlmAsJudgeMessageContent[];
|
|
2227
2235
|
stringContent?: boolean;
|
|
2236
|
+
structuredContent?: boolean;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2241
|
+
*/
|
|
2242
|
+
|
|
2243
|
+
interface LlmAsJudgeMessageContent {
|
|
2244
|
+
type: string;
|
|
2245
|
+
text?: string;
|
|
2246
|
+
imageUrl?: ImageUrl;
|
|
2247
|
+
videoUrl?: VideoUrl;
|
|
2228
2248
|
}
|
|
2229
2249
|
|
|
2230
2250
|
/**
|
|
@@ -2313,6 +2333,13 @@ interface UserDefinedMetricPythonCode {
|
|
|
2313
2333
|
arguments: Record<string, string>;
|
|
2314
2334
|
}
|
|
2315
2335
|
|
|
2336
|
+
/**
|
|
2337
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2338
|
+
*/
|
|
2339
|
+
interface VideoUrl {
|
|
2340
|
+
url: string;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2316
2343
|
/**
|
|
2317
2344
|
* This file was auto-generated by Fern from our API Definition.
|
|
2318
2345
|
*/
|
|
@@ -2373,6 +2400,14 @@ declare namespace AutomationRuleEvaluatorWrite {
|
|
|
2373
2400
|
}
|
|
2374
2401
|
}
|
|
2375
2402
|
|
|
2403
|
+
/**
|
|
2404
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2405
|
+
*/
|
|
2406
|
+
interface ImageUrlWrite {
|
|
2407
|
+
url: string;
|
|
2408
|
+
detail?: string;
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2376
2411
|
/**
|
|
2377
2412
|
* This file was auto-generated by Fern from our API Definition.
|
|
2378
2413
|
*/
|
|
@@ -2389,6 +2424,17 @@ interface LlmAsJudgeCodeWrite {
|
|
|
2389
2424
|
schema: LlmAsJudgeOutputSchemaWrite[];
|
|
2390
2425
|
}
|
|
2391
2426
|
|
|
2427
|
+
/**
|
|
2428
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2429
|
+
*/
|
|
2430
|
+
|
|
2431
|
+
interface LlmAsJudgeMessageContentWrite {
|
|
2432
|
+
type: string;
|
|
2433
|
+
text?: string;
|
|
2434
|
+
imageUrl?: ImageUrlWrite;
|
|
2435
|
+
videoUrl?: VideoUrlWrite;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2392
2438
|
/**
|
|
2393
2439
|
* This file was auto-generated by Fern from our API Definition.
|
|
2394
2440
|
*/
|
|
@@ -2407,9 +2453,10 @@ declare const LlmAsJudgeMessageWriteRole: {
|
|
|
2407
2453
|
|
|
2408
2454
|
interface LlmAsJudgeMessageWrite {
|
|
2409
2455
|
role: LlmAsJudgeMessageWriteRole;
|
|
2410
|
-
content
|
|
2411
|
-
|
|
2456
|
+
content?: string;
|
|
2457
|
+
contentArray?: LlmAsJudgeMessageContentWrite[];
|
|
2412
2458
|
stringContent?: boolean;
|
|
2459
|
+
structuredContent?: boolean;
|
|
2413
2460
|
}
|
|
2414
2461
|
|
|
2415
2462
|
/**
|
|
@@ -2498,6 +2545,13 @@ interface UserDefinedMetricPythonCodeWrite {
|
|
|
2498
2545
|
arguments: Record<string, string>;
|
|
2499
2546
|
}
|
|
2500
2547
|
|
|
2548
|
+
/**
|
|
2549
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2550
|
+
*/
|
|
2551
|
+
interface VideoUrlWrite {
|
|
2552
|
+
url: string;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2501
2555
|
/**
|
|
2502
2556
|
* This file was auto-generated by Fern from our API Definition.
|
|
2503
2557
|
*/
|
|
@@ -2576,6 +2630,14 @@ interface AutomationRuleEvaluatorUserDefinedMetricPythonPublic {
|
|
|
2576
2630
|
code?: UserDefinedMetricPythonCodePublic;
|
|
2577
2631
|
}
|
|
2578
2632
|
|
|
2633
|
+
/**
|
|
2634
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2635
|
+
*/
|
|
2636
|
+
interface ImageUrlPublic {
|
|
2637
|
+
url: string;
|
|
2638
|
+
detail?: string;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2579
2641
|
/**
|
|
2580
2642
|
* This file was auto-generated by Fern from our API Definition.
|
|
2581
2643
|
*/
|
|
@@ -2592,6 +2654,17 @@ interface LlmAsJudgeCodePublic {
|
|
|
2592
2654
|
schema: LlmAsJudgeOutputSchemaPublic[];
|
|
2593
2655
|
}
|
|
2594
2656
|
|
|
2657
|
+
/**
|
|
2658
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2659
|
+
*/
|
|
2660
|
+
|
|
2661
|
+
interface LlmAsJudgeMessageContentPublic {
|
|
2662
|
+
type: string;
|
|
2663
|
+
text?: string;
|
|
2664
|
+
imageUrl?: ImageUrlPublic;
|
|
2665
|
+
videoUrl?: VideoUrlPublic;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2595
2668
|
/**
|
|
2596
2669
|
* This file was auto-generated by Fern from our API Definition.
|
|
2597
2670
|
*/
|
|
@@ -2610,9 +2683,10 @@ declare const LlmAsJudgeMessagePublicRole: {
|
|
|
2610
2683
|
|
|
2611
2684
|
interface LlmAsJudgeMessagePublic {
|
|
2612
2685
|
role: LlmAsJudgeMessagePublicRole;
|
|
2613
|
-
content
|
|
2614
|
-
|
|
2686
|
+
content?: string;
|
|
2687
|
+
contentArray?: LlmAsJudgeMessageContentPublic[];
|
|
2615
2688
|
stringContent?: boolean;
|
|
2689
|
+
structuredContent?: boolean;
|
|
2616
2690
|
}
|
|
2617
2691
|
|
|
2618
2692
|
/**
|
|
@@ -2701,6 +2775,13 @@ interface UserDefinedMetricPythonCodePublic {
|
|
|
2701
2775
|
arguments: Record<string, string>;
|
|
2702
2776
|
}
|
|
2703
2777
|
|
|
2778
|
+
/**
|
|
2779
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2780
|
+
*/
|
|
2781
|
+
interface VideoUrlPublic {
|
|
2782
|
+
url: string;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2704
2785
|
/**
|
|
2705
2786
|
* This file was auto-generated by Fern from our API Definition.
|
|
2706
2787
|
*/
|
|
@@ -3058,6 +3139,7 @@ interface DatasetItem {
|
|
|
3058
3139
|
spanId?: string;
|
|
3059
3140
|
source: DatasetItemSource;
|
|
3060
3141
|
data: JsonNode;
|
|
3142
|
+
tags?: string[];
|
|
3061
3143
|
experimentItems?: ExperimentItem[];
|
|
3062
3144
|
datasetId?: string;
|
|
3063
3145
|
createdAt?: Date;
|
|
@@ -3173,6 +3255,7 @@ interface DatasetItemWrite {
|
|
|
3173
3255
|
spanId?: string;
|
|
3174
3256
|
source: DatasetItemWriteSource;
|
|
3175
3257
|
data: JsonNode;
|
|
3258
|
+
tags?: string[];
|
|
3176
3259
|
}
|
|
3177
3260
|
|
|
3178
3261
|
/**
|
|
@@ -3290,6 +3373,7 @@ interface DatasetItemCompare {
|
|
|
3290
3373
|
spanId?: string;
|
|
3291
3374
|
source: DatasetItemCompareSource;
|
|
3292
3375
|
data: JsonNode;
|
|
3376
|
+
tags?: string[];
|
|
3293
3377
|
experimentItems?: ExperimentItemCompare[];
|
|
3294
3378
|
datasetId?: string;
|
|
3295
3379
|
createdAt?: Date;
|
|
@@ -3508,6 +3592,7 @@ interface DatasetItemPublic {
|
|
|
3508
3592
|
spanId?: string;
|
|
3509
3593
|
source: DatasetItemPublicSource;
|
|
3510
3594
|
data: JsonNode;
|
|
3595
|
+
tags?: string[];
|
|
3511
3596
|
experimentItems?: ExperimentItemPublic[];
|
|
3512
3597
|
datasetId?: string;
|
|
3513
3598
|
createdAt?: Date;
|
|
@@ -6627,6 +6712,25 @@ declare class Datasets {
|
|
|
6627
6712
|
*/
|
|
6628
6713
|
getDatasetItemById(itemId: string, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<DatasetItemPublic>;
|
|
6629
6714
|
private __getDatasetItemById;
|
|
6715
|
+
/**
|
|
6716
|
+
* Partially update dataset item by id. Only provided fields will be updated.
|
|
6717
|
+
*
|
|
6718
|
+
* @param {string} itemId
|
|
6719
|
+
* @param {OpikApi.DatasetItemWrite} request
|
|
6720
|
+
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
6721
|
+
*
|
|
6722
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
6723
|
+
*
|
|
6724
|
+
* @example
|
|
6725
|
+
* await client.datasets.patchDatasetItem("itemId", {
|
|
6726
|
+
* source: "manual",
|
|
6727
|
+
* data: {
|
|
6728
|
+
* "key": "value"
|
|
6729
|
+
* }
|
|
6730
|
+
* })
|
|
6731
|
+
*/
|
|
6732
|
+
patchDatasetItem(itemId: string, request: DatasetItemWrite, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
|
|
6733
|
+
private __patchDatasetItem;
|
|
6630
6734
|
/**
|
|
6631
6735
|
* Get dataset items
|
|
6632
6736
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2188,6 +2188,14 @@ interface WorkspaceNameHolder {
|
|
|
2188
2188
|
workspaceName?: string;
|
|
2189
2189
|
}
|
|
2190
2190
|
|
|
2191
|
+
/**
|
|
2192
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2193
|
+
*/
|
|
2194
|
+
interface ImageUrl {
|
|
2195
|
+
url: string;
|
|
2196
|
+
detail?: string;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2191
2199
|
/**
|
|
2192
2200
|
* This file was auto-generated by Fern from our API Definition.
|
|
2193
2201
|
*/
|
|
@@ -2222,9 +2230,21 @@ declare const LlmAsJudgeMessageRole: {
|
|
|
2222
2230
|
|
|
2223
2231
|
interface LlmAsJudgeMessage {
|
|
2224
2232
|
role: LlmAsJudgeMessageRole;
|
|
2225
|
-
content
|
|
2226
|
-
|
|
2233
|
+
content?: string;
|
|
2234
|
+
contentArray?: LlmAsJudgeMessageContent[];
|
|
2227
2235
|
stringContent?: boolean;
|
|
2236
|
+
structuredContent?: boolean;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2241
|
+
*/
|
|
2242
|
+
|
|
2243
|
+
interface LlmAsJudgeMessageContent {
|
|
2244
|
+
type: string;
|
|
2245
|
+
text?: string;
|
|
2246
|
+
imageUrl?: ImageUrl;
|
|
2247
|
+
videoUrl?: VideoUrl;
|
|
2228
2248
|
}
|
|
2229
2249
|
|
|
2230
2250
|
/**
|
|
@@ -2313,6 +2333,13 @@ interface UserDefinedMetricPythonCode {
|
|
|
2313
2333
|
arguments: Record<string, string>;
|
|
2314
2334
|
}
|
|
2315
2335
|
|
|
2336
|
+
/**
|
|
2337
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2338
|
+
*/
|
|
2339
|
+
interface VideoUrl {
|
|
2340
|
+
url: string;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2316
2343
|
/**
|
|
2317
2344
|
* This file was auto-generated by Fern from our API Definition.
|
|
2318
2345
|
*/
|
|
@@ -2373,6 +2400,14 @@ declare namespace AutomationRuleEvaluatorWrite {
|
|
|
2373
2400
|
}
|
|
2374
2401
|
}
|
|
2375
2402
|
|
|
2403
|
+
/**
|
|
2404
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2405
|
+
*/
|
|
2406
|
+
interface ImageUrlWrite {
|
|
2407
|
+
url: string;
|
|
2408
|
+
detail?: string;
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2376
2411
|
/**
|
|
2377
2412
|
* This file was auto-generated by Fern from our API Definition.
|
|
2378
2413
|
*/
|
|
@@ -2389,6 +2424,17 @@ interface LlmAsJudgeCodeWrite {
|
|
|
2389
2424
|
schema: LlmAsJudgeOutputSchemaWrite[];
|
|
2390
2425
|
}
|
|
2391
2426
|
|
|
2427
|
+
/**
|
|
2428
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2429
|
+
*/
|
|
2430
|
+
|
|
2431
|
+
interface LlmAsJudgeMessageContentWrite {
|
|
2432
|
+
type: string;
|
|
2433
|
+
text?: string;
|
|
2434
|
+
imageUrl?: ImageUrlWrite;
|
|
2435
|
+
videoUrl?: VideoUrlWrite;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2392
2438
|
/**
|
|
2393
2439
|
* This file was auto-generated by Fern from our API Definition.
|
|
2394
2440
|
*/
|
|
@@ -2407,9 +2453,10 @@ declare const LlmAsJudgeMessageWriteRole: {
|
|
|
2407
2453
|
|
|
2408
2454
|
interface LlmAsJudgeMessageWrite {
|
|
2409
2455
|
role: LlmAsJudgeMessageWriteRole;
|
|
2410
|
-
content
|
|
2411
|
-
|
|
2456
|
+
content?: string;
|
|
2457
|
+
contentArray?: LlmAsJudgeMessageContentWrite[];
|
|
2412
2458
|
stringContent?: boolean;
|
|
2459
|
+
structuredContent?: boolean;
|
|
2413
2460
|
}
|
|
2414
2461
|
|
|
2415
2462
|
/**
|
|
@@ -2498,6 +2545,13 @@ interface UserDefinedMetricPythonCodeWrite {
|
|
|
2498
2545
|
arguments: Record<string, string>;
|
|
2499
2546
|
}
|
|
2500
2547
|
|
|
2548
|
+
/**
|
|
2549
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2550
|
+
*/
|
|
2551
|
+
interface VideoUrlWrite {
|
|
2552
|
+
url: string;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2501
2555
|
/**
|
|
2502
2556
|
* This file was auto-generated by Fern from our API Definition.
|
|
2503
2557
|
*/
|
|
@@ -2576,6 +2630,14 @@ interface AutomationRuleEvaluatorUserDefinedMetricPythonPublic {
|
|
|
2576
2630
|
code?: UserDefinedMetricPythonCodePublic;
|
|
2577
2631
|
}
|
|
2578
2632
|
|
|
2633
|
+
/**
|
|
2634
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2635
|
+
*/
|
|
2636
|
+
interface ImageUrlPublic {
|
|
2637
|
+
url: string;
|
|
2638
|
+
detail?: string;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2579
2641
|
/**
|
|
2580
2642
|
* This file was auto-generated by Fern from our API Definition.
|
|
2581
2643
|
*/
|
|
@@ -2592,6 +2654,17 @@ interface LlmAsJudgeCodePublic {
|
|
|
2592
2654
|
schema: LlmAsJudgeOutputSchemaPublic[];
|
|
2593
2655
|
}
|
|
2594
2656
|
|
|
2657
|
+
/**
|
|
2658
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2659
|
+
*/
|
|
2660
|
+
|
|
2661
|
+
interface LlmAsJudgeMessageContentPublic {
|
|
2662
|
+
type: string;
|
|
2663
|
+
text?: string;
|
|
2664
|
+
imageUrl?: ImageUrlPublic;
|
|
2665
|
+
videoUrl?: VideoUrlPublic;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2595
2668
|
/**
|
|
2596
2669
|
* This file was auto-generated by Fern from our API Definition.
|
|
2597
2670
|
*/
|
|
@@ -2610,9 +2683,10 @@ declare const LlmAsJudgeMessagePublicRole: {
|
|
|
2610
2683
|
|
|
2611
2684
|
interface LlmAsJudgeMessagePublic {
|
|
2612
2685
|
role: LlmAsJudgeMessagePublicRole;
|
|
2613
|
-
content
|
|
2614
|
-
|
|
2686
|
+
content?: string;
|
|
2687
|
+
contentArray?: LlmAsJudgeMessageContentPublic[];
|
|
2615
2688
|
stringContent?: boolean;
|
|
2689
|
+
structuredContent?: boolean;
|
|
2616
2690
|
}
|
|
2617
2691
|
|
|
2618
2692
|
/**
|
|
@@ -2701,6 +2775,13 @@ interface UserDefinedMetricPythonCodePublic {
|
|
|
2701
2775
|
arguments: Record<string, string>;
|
|
2702
2776
|
}
|
|
2703
2777
|
|
|
2778
|
+
/**
|
|
2779
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2780
|
+
*/
|
|
2781
|
+
interface VideoUrlPublic {
|
|
2782
|
+
url: string;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2704
2785
|
/**
|
|
2705
2786
|
* This file was auto-generated by Fern from our API Definition.
|
|
2706
2787
|
*/
|
|
@@ -3058,6 +3139,7 @@ interface DatasetItem {
|
|
|
3058
3139
|
spanId?: string;
|
|
3059
3140
|
source: DatasetItemSource;
|
|
3060
3141
|
data: JsonNode;
|
|
3142
|
+
tags?: string[];
|
|
3061
3143
|
experimentItems?: ExperimentItem[];
|
|
3062
3144
|
datasetId?: string;
|
|
3063
3145
|
createdAt?: Date;
|
|
@@ -3173,6 +3255,7 @@ interface DatasetItemWrite {
|
|
|
3173
3255
|
spanId?: string;
|
|
3174
3256
|
source: DatasetItemWriteSource;
|
|
3175
3257
|
data: JsonNode;
|
|
3258
|
+
tags?: string[];
|
|
3176
3259
|
}
|
|
3177
3260
|
|
|
3178
3261
|
/**
|
|
@@ -3290,6 +3373,7 @@ interface DatasetItemCompare {
|
|
|
3290
3373
|
spanId?: string;
|
|
3291
3374
|
source: DatasetItemCompareSource;
|
|
3292
3375
|
data: JsonNode;
|
|
3376
|
+
tags?: string[];
|
|
3293
3377
|
experimentItems?: ExperimentItemCompare[];
|
|
3294
3378
|
datasetId?: string;
|
|
3295
3379
|
createdAt?: Date;
|
|
@@ -3508,6 +3592,7 @@ interface DatasetItemPublic {
|
|
|
3508
3592
|
spanId?: string;
|
|
3509
3593
|
source: DatasetItemPublicSource;
|
|
3510
3594
|
data: JsonNode;
|
|
3595
|
+
tags?: string[];
|
|
3511
3596
|
experimentItems?: ExperimentItemPublic[];
|
|
3512
3597
|
datasetId?: string;
|
|
3513
3598
|
createdAt?: Date;
|
|
@@ -6627,6 +6712,25 @@ declare class Datasets {
|
|
|
6627
6712
|
*/
|
|
6628
6713
|
getDatasetItemById(itemId: string, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<DatasetItemPublic>;
|
|
6629
6714
|
private __getDatasetItemById;
|
|
6715
|
+
/**
|
|
6716
|
+
* Partially update dataset item by id. Only provided fields will be updated.
|
|
6717
|
+
*
|
|
6718
|
+
* @param {string} itemId
|
|
6719
|
+
* @param {OpikApi.DatasetItemWrite} request
|
|
6720
|
+
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
6721
|
+
*
|
|
6722
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
6723
|
+
*
|
|
6724
|
+
* @example
|
|
6725
|
+
* await client.datasets.patchDatasetItem("itemId", {
|
|
6726
|
+
* source: "manual",
|
|
6727
|
+
* data: {
|
|
6728
|
+
* "key": "value"
|
|
6729
|
+
* }
|
|
6730
|
+
* })
|
|
6731
|
+
*/
|
|
6732
|
+
patchDatasetItem(itemId: string, request: DatasetItemWrite, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
|
|
6733
|
+
private __patchDatasetItem;
|
|
6630
6734
|
/**
|
|
6631
6735
|
* Get dataset items
|
|
6632
6736
|
*
|