opik 1.7.13 → 1.7.14
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/{Client-B_2JOueU.d.cts → Client-DH-gNmmg.d.cts} +363 -131
- package/dist/{Client-B_2JOueU.d.ts → Client-DH-gNmmg.d.ts} +363 -131
- package/dist/chunk-X47BOIBU.js +4 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/vercel/index.cjs +4 -4
- package/dist/vercel/index.d.cts +1 -1
- package/dist/vercel/index.d.ts +1 -1
- package/dist/vercel/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BFXGGAXO.js +0 -4
|
@@ -306,6 +306,116 @@ interface DatasetItemStreamRequest {
|
|
|
306
306
|
steamLimit?: number;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
/**
|
|
310
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
311
|
+
*/
|
|
312
|
+
type ExperimentWriteType = "regular" | "trial" | "mini-batch";
|
|
313
|
+
declare const ExperimentWriteType: {
|
|
314
|
+
readonly Regular: "regular";
|
|
315
|
+
readonly Trial: "trial";
|
|
316
|
+
readonly MiniBatch: "mini-batch";
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
321
|
+
*/
|
|
322
|
+
/**
|
|
323
|
+
* @example
|
|
324
|
+
* {}
|
|
325
|
+
*/
|
|
326
|
+
interface FindExperimentsRequest {
|
|
327
|
+
page?: number;
|
|
328
|
+
size?: number;
|
|
329
|
+
datasetId?: string;
|
|
330
|
+
name?: string;
|
|
331
|
+
datasetDeleted?: boolean;
|
|
332
|
+
promptId?: string;
|
|
333
|
+
sorting?: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @example
|
|
342
|
+
* {
|
|
343
|
+
* datasetName: "dataset_name"
|
|
344
|
+
* }
|
|
345
|
+
*/
|
|
346
|
+
interface ExperimentWrite {
|
|
347
|
+
id?: string;
|
|
348
|
+
datasetName: string;
|
|
349
|
+
name?: string;
|
|
350
|
+
metadata?: JsonNodeWrite;
|
|
351
|
+
type?: ExperimentWriteType;
|
|
352
|
+
optimizationId?: string;
|
|
353
|
+
promptVersion?: PromptVersionLinkWrite;
|
|
354
|
+
promptVersions?: PromptVersionLinkWrite[];
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* @example
|
|
363
|
+
* {
|
|
364
|
+
* experimentItems: [{
|
|
365
|
+
* experimentId: "experiment_id",
|
|
366
|
+
* datasetItemId: "dataset_item_id",
|
|
367
|
+
* traceId: "trace_id"
|
|
368
|
+
* }]
|
|
369
|
+
* }
|
|
370
|
+
*/
|
|
371
|
+
interface ExperimentItemsBatch {
|
|
372
|
+
experimentItems: ExperimentItem[];
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
377
|
+
*/
|
|
378
|
+
/**
|
|
379
|
+
* @example
|
|
380
|
+
* {
|
|
381
|
+
* ids: ["ids"]
|
|
382
|
+
* }
|
|
383
|
+
*/
|
|
384
|
+
interface ExperimentItemsDelete {
|
|
385
|
+
ids: string[];
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
390
|
+
*/
|
|
391
|
+
/**
|
|
392
|
+
* @example
|
|
393
|
+
* {}
|
|
394
|
+
*/
|
|
395
|
+
interface FindFeedbackScoreNamesRequest {
|
|
396
|
+
experimentIds?: string;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
401
|
+
*/
|
|
402
|
+
interface ExperimentItemStreamRequest {
|
|
403
|
+
experimentName: string;
|
|
404
|
+
limit?: number;
|
|
405
|
+
lastRetrievedId?: string;
|
|
406
|
+
/** Truncate image included in either input, output or metadata */
|
|
407
|
+
truncate?: boolean;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
412
|
+
*/
|
|
413
|
+
interface ExperimentStreamRequestPublic {
|
|
414
|
+
name: string;
|
|
415
|
+
limit?: number;
|
|
416
|
+
lastRetrievedId?: string;
|
|
417
|
+
}
|
|
418
|
+
|
|
309
419
|
/**
|
|
310
420
|
* This file was auto-generated by Fern from our API Definition.
|
|
311
421
|
*/
|
|
@@ -372,6 +482,75 @@ interface ProviderApiKeyUpdate {
|
|
|
372
482
|
name?: string;
|
|
373
483
|
}
|
|
374
484
|
|
|
485
|
+
/**
|
|
486
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
487
|
+
*/
|
|
488
|
+
type OptimizationWriteStatus = "running" | "completed" | "cancelled";
|
|
489
|
+
declare const OptimizationWriteStatus: {
|
|
490
|
+
readonly Running: "running";
|
|
491
|
+
readonly Completed: "completed";
|
|
492
|
+
readonly Cancelled: "cancelled";
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
497
|
+
*/
|
|
498
|
+
type OptimizationUpdateStatus = "running" | "completed" | "cancelled";
|
|
499
|
+
declare const OptimizationUpdateStatus: {
|
|
500
|
+
readonly Running: "running";
|
|
501
|
+
readonly Completed: "completed";
|
|
502
|
+
readonly Cancelled: "cancelled";
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
507
|
+
*/
|
|
508
|
+
/**
|
|
509
|
+
* @example
|
|
510
|
+
* {}
|
|
511
|
+
*/
|
|
512
|
+
interface FindOptimizationsRequest {
|
|
513
|
+
page?: number;
|
|
514
|
+
size?: number;
|
|
515
|
+
datasetId?: string;
|
|
516
|
+
name?: string;
|
|
517
|
+
datasetDeleted?: boolean;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
522
|
+
*/
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @example
|
|
526
|
+
* {
|
|
527
|
+
* datasetName: "dataset_name",
|
|
528
|
+
* objectiveName: "objective_name",
|
|
529
|
+
* status: "running"
|
|
530
|
+
* }
|
|
531
|
+
*/
|
|
532
|
+
interface OptimizationWrite {
|
|
533
|
+
id?: string;
|
|
534
|
+
name?: string;
|
|
535
|
+
datasetName: string;
|
|
536
|
+
objectiveName: string;
|
|
537
|
+
status: OptimizationWriteStatus;
|
|
538
|
+
metadata?: JsonNodeWrite;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
543
|
+
*/
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @example
|
|
547
|
+
* {}
|
|
548
|
+
*/
|
|
549
|
+
interface OptimizationUpdate {
|
|
550
|
+
name?: string;
|
|
551
|
+
status?: OptimizationUpdateStatus;
|
|
552
|
+
}
|
|
553
|
+
|
|
375
554
|
/**
|
|
376
555
|
* This file was auto-generated by Fern from our API Definition.
|
|
377
556
|
*/
|
|
@@ -854,117 +1033,6 @@ interface ChatCompletionRequest {
|
|
|
854
1033
|
functionCall?: FunctionCall;
|
|
855
1034
|
}
|
|
856
1035
|
|
|
857
|
-
/**
|
|
858
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
859
|
-
*/
|
|
860
|
-
/**
|
|
861
|
-
* @example
|
|
862
|
-
* {}
|
|
863
|
-
*/
|
|
864
|
-
interface FindExperimentsRequest {
|
|
865
|
-
page?: number;
|
|
866
|
-
size?: number;
|
|
867
|
-
datasetId?: string;
|
|
868
|
-
name?: string;
|
|
869
|
-
datasetDeleted?: boolean;
|
|
870
|
-
promptId?: string;
|
|
871
|
-
sorting?: string;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
876
|
-
*/
|
|
877
|
-
|
|
878
|
-
/**
|
|
879
|
-
* @example
|
|
880
|
-
* {
|
|
881
|
-
* datasetName: "dataset_name"
|
|
882
|
-
* }
|
|
883
|
-
*/
|
|
884
|
-
interface ExperimentWrite {
|
|
885
|
-
id?: string;
|
|
886
|
-
datasetName: string;
|
|
887
|
-
name?: string;
|
|
888
|
-
metadata?: JsonNodeWrite;
|
|
889
|
-
promptVersion?: PromptVersionLinkWrite;
|
|
890
|
-
promptVersions?: PromptVersionLinkWrite[];
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
/**
|
|
894
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
895
|
-
*/
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* @example
|
|
899
|
-
* {
|
|
900
|
-
* experimentItems: [{
|
|
901
|
-
* experimentId: "experiment_id",
|
|
902
|
-
* datasetItemId: "dataset_item_id",
|
|
903
|
-
* traceId: "trace_id"
|
|
904
|
-
* }]
|
|
905
|
-
* }
|
|
906
|
-
*/
|
|
907
|
-
interface ExperimentItemsBatch {
|
|
908
|
-
experimentItems: ExperimentItem[];
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
/**
|
|
912
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
913
|
-
*/
|
|
914
|
-
/**
|
|
915
|
-
* @example
|
|
916
|
-
* {
|
|
917
|
-
* ids: ["ids"]
|
|
918
|
-
* }
|
|
919
|
-
*/
|
|
920
|
-
interface ExperimentItemsDelete {
|
|
921
|
-
ids: string[];
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
926
|
-
*/
|
|
927
|
-
/**
|
|
928
|
-
* @example
|
|
929
|
-
* {
|
|
930
|
-
* ids: ["ids"]
|
|
931
|
-
* }
|
|
932
|
-
*/
|
|
933
|
-
interface ExperimentsDelete {
|
|
934
|
-
ids: string[];
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
939
|
-
*/
|
|
940
|
-
/**
|
|
941
|
-
* @example
|
|
942
|
-
* {}
|
|
943
|
-
*/
|
|
944
|
-
interface FindFeedbackScoreNamesRequest {
|
|
945
|
-
experimentIds?: string;
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
/**
|
|
949
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
950
|
-
*/
|
|
951
|
-
interface ExperimentItemStreamRequest {
|
|
952
|
-
experimentName: string;
|
|
953
|
-
limit?: number;
|
|
954
|
-
lastRetrievedId?: string;
|
|
955
|
-
/** Truncate image included in either input, output or metadata */
|
|
956
|
-
truncate?: boolean;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
961
|
-
*/
|
|
962
|
-
interface ExperimentStreamRequestPublic {
|
|
963
|
-
name: string;
|
|
964
|
-
limit?: number;
|
|
965
|
-
lastRetrievedId?: string;
|
|
966
|
-
}
|
|
967
|
-
|
|
968
1036
|
/**
|
|
969
1037
|
* This file was auto-generated by Fern from our API Definition.
|
|
970
1038
|
*/
|
|
@@ -986,8 +1054,8 @@ interface ExperimentStreamRequestPublic {
|
|
|
986
1054
|
* }]
|
|
987
1055
|
* }
|
|
988
1056
|
*/
|
|
989
|
-
interface
|
|
990
|
-
guardrails:
|
|
1057
|
+
interface GuardrailBatchWrite {
|
|
1058
|
+
guardrails: GuardrailWrite[];
|
|
991
1059
|
}
|
|
992
1060
|
|
|
993
1061
|
/**
|
|
@@ -1005,6 +1073,7 @@ interface GetTracesByProjectRequest {
|
|
|
1005
1073
|
filters?: string;
|
|
1006
1074
|
truncate?: boolean;
|
|
1007
1075
|
sorting?: string;
|
|
1076
|
+
exclude?: string;
|
|
1008
1077
|
}
|
|
1009
1078
|
|
|
1010
1079
|
/**
|
|
@@ -1015,7 +1084,6 @@ interface GetTracesByProjectRequest {
|
|
|
1015
1084
|
* @example
|
|
1016
1085
|
* {
|
|
1017
1086
|
* traces: [{
|
|
1018
|
-
* name: "name",
|
|
1019
1087
|
* startTime: "2024-01-15T09:30:00Z"
|
|
1020
1088
|
* }]
|
|
1021
1089
|
* }
|
|
@@ -1037,6 +1105,7 @@ interface TraceUpdate {
|
|
|
1037
1105
|
projectName?: string;
|
|
1038
1106
|
/** If null and project_name not specified, Default Project is assumed */
|
|
1039
1107
|
projectId?: string;
|
|
1108
|
+
name?: string;
|
|
1040
1109
|
endTime?: Date;
|
|
1041
1110
|
input?: JsonNode;
|
|
1042
1111
|
output?: JsonNode;
|
|
@@ -2147,6 +2216,7 @@ interface DatasetPublic {
|
|
|
2147
2216
|
datasetItemsCount?: number;
|
|
2148
2217
|
mostRecentExperimentAt?: Date;
|
|
2149
2218
|
lastCreatedExperimentAt?: Date;
|
|
2219
|
+
lastCreatedOptimizationAt?: Date;
|
|
2150
2220
|
}
|
|
2151
2221
|
|
|
2152
2222
|
/**
|
|
@@ -2290,6 +2360,13 @@ interface PromptVersionLinkWrite {
|
|
|
2290
2360
|
id: string;
|
|
2291
2361
|
}
|
|
2292
2362
|
|
|
2363
|
+
/**
|
|
2364
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2365
|
+
*/
|
|
2366
|
+
interface DeleteIdsHolder {
|
|
2367
|
+
ids: string[];
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2293
2370
|
/**
|
|
2294
2371
|
* This file was auto-generated by Fern from our API Definition.
|
|
2295
2372
|
*/
|
|
@@ -2314,6 +2391,16 @@ interface ExperimentPagePublic {
|
|
|
2314
2391
|
sortableBy?: string[];
|
|
2315
2392
|
}
|
|
2316
2393
|
|
|
2394
|
+
/**
|
|
2395
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2396
|
+
*/
|
|
2397
|
+
type ExperimentPublicType = "regular" | "trial" | "mini-batch";
|
|
2398
|
+
declare const ExperimentPublicType: {
|
|
2399
|
+
readonly Regular: "regular";
|
|
2400
|
+
readonly Trial: "trial";
|
|
2401
|
+
readonly MiniBatch: "mini-batch";
|
|
2402
|
+
};
|
|
2403
|
+
|
|
2317
2404
|
/**
|
|
2318
2405
|
* This file was auto-generated by Fern from our API Definition.
|
|
2319
2406
|
*/
|
|
@@ -2324,6 +2411,8 @@ interface ExperimentPublic {
|
|
|
2324
2411
|
datasetId?: string;
|
|
2325
2412
|
name?: string;
|
|
2326
2413
|
metadata?: JsonNodePublic;
|
|
2414
|
+
type?: ExperimentPublicType;
|
|
2415
|
+
optimizationId?: string;
|
|
2327
2416
|
feedbackScores?: FeedbackScoreAveragePublic[];
|
|
2328
2417
|
comments?: CommentPublic[];
|
|
2329
2418
|
traceCount?: number;
|
|
@@ -2564,8 +2653,8 @@ interface NumericalFeedbackDetailUpdate {
|
|
|
2564
2653
|
/**
|
|
2565
2654
|
* This file was auto-generated by Fern from our API Definition.
|
|
2566
2655
|
*/
|
|
2567
|
-
type
|
|
2568
|
-
declare const
|
|
2656
|
+
type GuardrailWriteName = "TOPIC" | "PII";
|
|
2657
|
+
declare const GuardrailWriteName: {
|
|
2569
2658
|
readonly Topic: "TOPIC";
|
|
2570
2659
|
readonly Pii: "PII";
|
|
2571
2660
|
};
|
|
@@ -2573,8 +2662,8 @@ declare const GuardrailName: {
|
|
|
2573
2662
|
/**
|
|
2574
2663
|
* This file was auto-generated by Fern from our API Definition.
|
|
2575
2664
|
*/
|
|
2576
|
-
type
|
|
2577
|
-
declare const
|
|
2665
|
+
type GuardrailWriteResult = "passed" | "failed";
|
|
2666
|
+
declare const GuardrailWriteResult: {
|
|
2578
2667
|
readonly Passed: "passed";
|
|
2579
2668
|
readonly Failed: "failed";
|
|
2580
2669
|
};
|
|
@@ -2583,14 +2672,13 @@ declare const GuardrailResult: {
|
|
|
2583
2672
|
* This file was auto-generated by Fern from our API Definition.
|
|
2584
2673
|
*/
|
|
2585
2674
|
|
|
2586
|
-
interface
|
|
2587
|
-
id?: string;
|
|
2675
|
+
interface GuardrailWrite {
|
|
2588
2676
|
entityId: string;
|
|
2589
2677
|
secondaryId: string;
|
|
2590
2678
|
/** If null, the default project is used */
|
|
2591
2679
|
projectName?: string;
|
|
2592
|
-
name:
|
|
2593
|
-
result:
|
|
2680
|
+
name: GuardrailWriteName;
|
|
2681
|
+
result: GuardrailWriteResult;
|
|
2594
2682
|
config: JsonNode;
|
|
2595
2683
|
details: JsonNode;
|
|
2596
2684
|
}
|
|
@@ -2632,6 +2720,48 @@ interface ProviderApiKeyPublic {
|
|
|
2632
2720
|
lastUpdatedBy?: string;
|
|
2633
2721
|
}
|
|
2634
2722
|
|
|
2723
|
+
/**
|
|
2724
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2725
|
+
*/
|
|
2726
|
+
|
|
2727
|
+
interface OptimizationPagePublic {
|
|
2728
|
+
page?: number;
|
|
2729
|
+
size?: number;
|
|
2730
|
+
total?: number;
|
|
2731
|
+
content?: OptimizationPublic[];
|
|
2732
|
+
sortableBy?: string[];
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2737
|
+
*/
|
|
2738
|
+
type OptimizationPublicStatus = "running" | "completed" | "cancelled";
|
|
2739
|
+
declare const OptimizationPublicStatus: {
|
|
2740
|
+
readonly Running: "running";
|
|
2741
|
+
readonly Completed: "completed";
|
|
2742
|
+
readonly Cancelled: "cancelled";
|
|
2743
|
+
};
|
|
2744
|
+
|
|
2745
|
+
/**
|
|
2746
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2747
|
+
*/
|
|
2748
|
+
|
|
2749
|
+
interface OptimizationPublic {
|
|
2750
|
+
id?: string;
|
|
2751
|
+
name?: string;
|
|
2752
|
+
datasetName: string;
|
|
2753
|
+
objectiveName: string;
|
|
2754
|
+
status: OptimizationPublicStatus;
|
|
2755
|
+
metadata?: JsonNodePublic;
|
|
2756
|
+
datasetId?: string;
|
|
2757
|
+
numTrials?: number;
|
|
2758
|
+
feedbackScores?: FeedbackScoreAveragePublic[];
|
|
2759
|
+
createdAt?: Date;
|
|
2760
|
+
createdBy?: string;
|
|
2761
|
+
lastUpdatedAt?: Date;
|
|
2762
|
+
lastUpdatedBy?: string;
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2635
2765
|
/**
|
|
2636
2766
|
* This file was auto-generated by Fern from our API Definition.
|
|
2637
2767
|
*/
|
|
@@ -3283,7 +3413,7 @@ interface Trace$1 {
|
|
|
3283
3413
|
/** If null, the default project is used */
|
|
3284
3414
|
projectName?: string;
|
|
3285
3415
|
projectId?: string;
|
|
3286
|
-
name
|
|
3416
|
+
name?: string;
|
|
3287
3417
|
startTime: Date;
|
|
3288
3418
|
endTime?: Date;
|
|
3289
3419
|
input?: JsonNode;
|
|
@@ -3314,7 +3444,7 @@ interface TraceWrite {
|
|
|
3314
3444
|
id?: string;
|
|
3315
3445
|
/** If null, the default project is used */
|
|
3316
3446
|
projectName?: string;
|
|
3317
|
-
name
|
|
3447
|
+
name?: string;
|
|
3318
3448
|
startTime: Date;
|
|
3319
3449
|
endTime?: Date;
|
|
3320
3450
|
input?: JsonNodeWrite;
|
|
@@ -3322,6 +3452,7 @@ interface TraceWrite {
|
|
|
3322
3452
|
metadata?: JsonNodeWrite;
|
|
3323
3453
|
tags?: string[];
|
|
3324
3454
|
errorInfo?: ErrorInfoWrite;
|
|
3455
|
+
lastUpdatedAt?: Date;
|
|
3325
3456
|
threadId?: string;
|
|
3326
3457
|
}
|
|
3327
3458
|
|
|
@@ -3368,7 +3499,7 @@ interface GuardrailsValidationPublic {
|
|
|
3368
3499
|
interface TracePublic {
|
|
3369
3500
|
id?: string;
|
|
3370
3501
|
projectId?: string;
|
|
3371
|
-
name
|
|
3502
|
+
name?: string;
|
|
3372
3503
|
startTime: Date;
|
|
3373
3504
|
endTime?: Date;
|
|
3374
3505
|
input?: JsonNodePublic;
|
|
@@ -4236,7 +4367,7 @@ declare class Experiments {
|
|
|
4236
4367
|
/**
|
|
4237
4368
|
* Delete experiments by id
|
|
4238
4369
|
*
|
|
4239
|
-
* @param {OpikApi.
|
|
4370
|
+
* @param {OpikApi.DeleteIdsHolder} request
|
|
4240
4371
|
* @param {Experiments.RequestOptions} requestOptions - Request-specific configuration.
|
|
4241
4372
|
*
|
|
4242
4373
|
* @example
|
|
@@ -4244,7 +4375,7 @@ declare class Experiments {
|
|
|
4244
4375
|
* ids: ["ids"]
|
|
4245
4376
|
* })
|
|
4246
4377
|
*/
|
|
4247
|
-
deleteExperimentsById(request:
|
|
4378
|
+
deleteExperimentsById(request: DeleteIdsHolder, requestOptions?: Experiments.RequestOptions): Promise<void>;
|
|
4248
4379
|
/**
|
|
4249
4380
|
* Find Feedback Score names
|
|
4250
4381
|
*
|
|
@@ -4441,7 +4572,7 @@ declare class Guardrails {
|
|
|
4441
4572
|
/**
|
|
4442
4573
|
* Batch guardrails for traces
|
|
4443
4574
|
*
|
|
4444
|
-
* @param {OpikApi.
|
|
4575
|
+
* @param {OpikApi.GuardrailBatchWrite} request
|
|
4445
4576
|
* @param {Guardrails.RequestOptions} requestOptions - Request-specific configuration.
|
|
4446
4577
|
*
|
|
4447
4578
|
* @example
|
|
@@ -4460,7 +4591,7 @@ declare class Guardrails {
|
|
|
4460
4591
|
* }]
|
|
4461
4592
|
* })
|
|
4462
4593
|
*/
|
|
4463
|
-
createGuardrails(request:
|
|
4594
|
+
createGuardrails(request: GuardrailBatchWrite, requestOptions?: Guardrails.RequestOptions): Promise<void>;
|
|
4464
4595
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
4465
4596
|
Authorization: string | undefined;
|
|
4466
4597
|
}>;
|
|
@@ -4619,6 +4750,107 @@ declare class OpenTelemetryIngestion {
|
|
|
4619
4750
|
}>;
|
|
4620
4751
|
}
|
|
4621
4752
|
|
|
4753
|
+
/**
|
|
4754
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4755
|
+
*/
|
|
4756
|
+
|
|
4757
|
+
declare namespace Optimizations {
|
|
4758
|
+
interface Options {
|
|
4759
|
+
environment?: Supplier<OpikApiEnvironment | string>;
|
|
4760
|
+
/** Specify a custom URL to connect the client to. */
|
|
4761
|
+
baseUrl?: Supplier<string>;
|
|
4762
|
+
/** Override the Authorization header */
|
|
4763
|
+
apiKey?: Supplier<string | undefined>;
|
|
4764
|
+
/** Override the Comet-Workspace header */
|
|
4765
|
+
workspaceName?: Supplier<string | undefined>;
|
|
4766
|
+
}
|
|
4767
|
+
interface RequestOptions {
|
|
4768
|
+
/** The maximum time to wait for a response in seconds. */
|
|
4769
|
+
timeoutInSeconds?: number;
|
|
4770
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
4771
|
+
maxRetries?: number;
|
|
4772
|
+
/** A hook to abort the request. */
|
|
4773
|
+
abortSignal?: AbortSignal;
|
|
4774
|
+
/** Override the Authorization header */
|
|
4775
|
+
apiKey?: string | undefined;
|
|
4776
|
+
/** Override the Comet-Workspace header */
|
|
4777
|
+
workspaceName?: string | undefined;
|
|
4778
|
+
/** Additional headers to include in the request. */
|
|
4779
|
+
headers?: Record<string, string>;
|
|
4780
|
+
}
|
|
4781
|
+
}
|
|
4782
|
+
/**
|
|
4783
|
+
* Optimization resources
|
|
4784
|
+
*/
|
|
4785
|
+
declare class Optimizations {
|
|
4786
|
+
protected readonly _options: Optimizations.Options;
|
|
4787
|
+
constructor(_options?: Optimizations.Options);
|
|
4788
|
+
/**
|
|
4789
|
+
* Find optimizations
|
|
4790
|
+
*
|
|
4791
|
+
* @param {OpikApi.FindOptimizationsRequest} request
|
|
4792
|
+
* @param {Optimizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
4793
|
+
*
|
|
4794
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
4795
|
+
*
|
|
4796
|
+
* @example
|
|
4797
|
+
* await client.optimizations.findOptimizations()
|
|
4798
|
+
*/
|
|
4799
|
+
findOptimizations(request?: FindOptimizationsRequest, requestOptions?: Optimizations.RequestOptions): Promise<OptimizationPagePublic>;
|
|
4800
|
+
/**
|
|
4801
|
+
* Create optimization
|
|
4802
|
+
*
|
|
4803
|
+
* @param {OpikApi.OptimizationWrite} request
|
|
4804
|
+
* @param {Optimizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
4805
|
+
*
|
|
4806
|
+
* @example
|
|
4807
|
+
* await client.optimizations.createOptimization({
|
|
4808
|
+
* datasetName: "dataset_name",
|
|
4809
|
+
* objectiveName: "objective_name",
|
|
4810
|
+
* status: "running"
|
|
4811
|
+
* })
|
|
4812
|
+
*/
|
|
4813
|
+
createOptimization(request: OptimizationWrite, requestOptions?: Optimizations.RequestOptions): Promise<void>;
|
|
4814
|
+
/**
|
|
4815
|
+
* Delete optimizations by id
|
|
4816
|
+
*
|
|
4817
|
+
* @param {OpikApi.DeleteIdsHolder} request
|
|
4818
|
+
* @param {Optimizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
4819
|
+
*
|
|
4820
|
+
* @example
|
|
4821
|
+
* await client.optimizations.deleteOptimizationsById({
|
|
4822
|
+
* ids: ["ids"]
|
|
4823
|
+
* })
|
|
4824
|
+
*/
|
|
4825
|
+
deleteOptimizationsById(request: DeleteIdsHolder, requestOptions?: Optimizations.RequestOptions): Promise<void>;
|
|
4826
|
+
/**
|
|
4827
|
+
* Get optimization by id
|
|
4828
|
+
*
|
|
4829
|
+
* @param {string} id
|
|
4830
|
+
* @param {Optimizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
4831
|
+
*
|
|
4832
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
4833
|
+
*
|
|
4834
|
+
* @example
|
|
4835
|
+
* await client.optimizations.getOptimizationById("id")
|
|
4836
|
+
*/
|
|
4837
|
+
getOptimizationById(id: string, requestOptions?: Optimizations.RequestOptions): Promise<OptimizationPublic>;
|
|
4838
|
+
/**
|
|
4839
|
+
* Update optimization by id
|
|
4840
|
+
*
|
|
4841
|
+
* @param {string} id
|
|
4842
|
+
* @param {OpikApi.OptimizationUpdate} request
|
|
4843
|
+
* @param {Optimizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
4844
|
+
*
|
|
4845
|
+
* @example
|
|
4846
|
+
* await client.optimizations.updateOptimizationsById("id")
|
|
4847
|
+
*/
|
|
4848
|
+
updateOptimizationsById(id: string, request?: OptimizationUpdate, requestOptions?: Optimizations.RequestOptions): Promise<void>;
|
|
4849
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
4850
|
+
Authorization: string | undefined;
|
|
4851
|
+
}>;
|
|
4852
|
+
}
|
|
4853
|
+
|
|
4622
4854
|
/**
|
|
4623
4855
|
* This file was auto-generated by Fern from our API Definition.
|
|
4624
4856
|
*/
|
|
@@ -5334,7 +5566,6 @@ declare class Traces {
|
|
|
5334
5566
|
*
|
|
5335
5567
|
* @example
|
|
5336
5568
|
* await client.traces.createTrace({
|
|
5337
|
-
* name: "name",
|
|
5338
5569
|
* startTime: "2024-01-15T09:30:00Z"
|
|
5339
5570
|
* })
|
|
5340
5571
|
*/
|
|
@@ -5348,7 +5579,6 @@ declare class Traces {
|
|
|
5348
5579
|
* @example
|
|
5349
5580
|
* await client.traces.createTraces({
|
|
5350
5581
|
* traces: [{
|
|
5351
|
-
* name: "name",
|
|
5352
5582
|
* startTime: "2024-01-15T09:30:00Z"
|
|
5353
5583
|
* }]
|
|
5354
5584
|
* })
|
|
@@ -5666,6 +5896,7 @@ declare class OpikApiClient {
|
|
|
5666
5896
|
protected _guardrails: Guardrails | undefined;
|
|
5667
5897
|
protected _llmProviderKey: LlmProviderKey | undefined;
|
|
5668
5898
|
protected _openTelemetryIngestion: OpenTelemetryIngestion | undefined;
|
|
5899
|
+
protected _optimizations: Optimizations | undefined;
|
|
5669
5900
|
protected _projects: Projects | undefined;
|
|
5670
5901
|
protected _prompts: Prompts | undefined;
|
|
5671
5902
|
protected _serviceToggles: ServiceToggles | undefined;
|
|
@@ -5684,6 +5915,7 @@ declare class OpikApiClient {
|
|
|
5684
5915
|
get guardrails(): Guardrails;
|
|
5685
5916
|
get llmProviderKey(): LlmProviderKey;
|
|
5686
5917
|
get openTelemetryIngestion(): OpenTelemetryIngestion;
|
|
5918
|
+
get optimizations(): Optimizations;
|
|
5687
5919
|
get projects(): Projects;
|
|
5688
5920
|
get prompts(): Prompts;
|
|
5689
5921
|
get serviceToggles(): ServiceToggles;
|