opik 2.2.155 → 2.3.1
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/chunk-EWN3R4VA.js +404 -0
- package/dist/cli.js +1 -1
- package/dist/index.cjs +56 -56
- package/dist/index.d.cts +468 -4
- package/dist/index.d.ts +468 -4
- package/dist/index.js +1 -1
- package/dist/{suite-GTT6FCMT.js → suite-26YW354V.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-PCLIUA23.js +0 -404
package/dist/index.d.ts
CHANGED
|
@@ -1034,6 +1034,31 @@ interface DatasetExpansionWrite {
|
|
|
1034
1034
|
maxCompletionTokens?: number;
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
|
+
/**
|
|
1038
|
+
* @example
|
|
1039
|
+
* {}
|
|
1040
|
+
*/
|
|
1041
|
+
interface DatasetExperimentItemStreamRequest {
|
|
1042
|
+
/** Dataset ID. Set this or dataset_name */
|
|
1043
|
+
datasetId?: string;
|
|
1044
|
+
/** Dataset name. Set this or dataset_id */
|
|
1045
|
+
datasetName?: string;
|
|
1046
|
+
/** Project of the dataset, used with dataset_name */
|
|
1047
|
+
projectName?: string;
|
|
1048
|
+
/** Dataset version hashes or tags, such as 'latest'. Only experiments run against one of these versions are included; omit for every version. Returns 404 if any version does not exist */
|
|
1049
|
+
datasetVersions?: string[];
|
|
1050
|
+
/** JSON array of dataset item filters, evaluated against the newest version of each item that the experiments reference */
|
|
1051
|
+
filters?: string;
|
|
1052
|
+
/** Maximum number of experiment items to return */
|
|
1053
|
+
limit?: number;
|
|
1054
|
+
/** Optional hint: experiment_id of the last experiment item received. Used only if that item was deleted, to resume from the start of its experiment instead of from the start of the stream. Requires last_retrieved_id */
|
|
1055
|
+
lastRetrievedExperimentId?: string;
|
|
1056
|
+
/** id of the last experiment item received */
|
|
1057
|
+
lastRetrievedId?: string;
|
|
1058
|
+
/** Truncate image included in either input, output or metadata */
|
|
1059
|
+
truncate?: boolean;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1037
1062
|
/**
|
|
1038
1063
|
* @example
|
|
1039
1064
|
* {
|
|
@@ -1227,7 +1252,7 @@ interface FindDatasetItemsWithExperimentItemsRequest {
|
|
|
1227
1252
|
page?: number;
|
|
1228
1253
|
size?: number;
|
|
1229
1254
|
experimentIds?: string;
|
|
1230
|
-
|
|
1255
|
+
datasetVersions?: string;
|
|
1231
1256
|
filters?: string;
|
|
1232
1257
|
sorting?: string;
|
|
1233
1258
|
search?: string;
|
|
@@ -3587,6 +3612,162 @@ declare const TraceSearchStreamRequestPublicExcludeItem: {
|
|
|
3587
3612
|
};
|
|
3588
3613
|
type TraceSearchStreamRequestPublicExcludeItem = (typeof TraceSearchStreamRequestPublicExcludeItem)[keyof typeof TraceSearchStreamRequestPublicExcludeItem];
|
|
3589
3614
|
|
|
3615
|
+
/**
|
|
3616
|
+
* @example
|
|
3617
|
+
* {}
|
|
3618
|
+
*/
|
|
3619
|
+
type DeleteViewRequest = {};
|
|
3620
|
+
|
|
3621
|
+
/**
|
|
3622
|
+
* @example
|
|
3623
|
+
* {}
|
|
3624
|
+
*/
|
|
3625
|
+
type DeleteViewVersionRequest = {};
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* @example
|
|
3629
|
+
* {}
|
|
3630
|
+
*/
|
|
3631
|
+
type GetViewByIdRequest = {};
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* @example
|
|
3635
|
+
* {}
|
|
3636
|
+
*/
|
|
3637
|
+
type GetViewVersionRequest = {};
|
|
3638
|
+
|
|
3639
|
+
/**
|
|
3640
|
+
* @example
|
|
3641
|
+
* {}
|
|
3642
|
+
*/
|
|
3643
|
+
interface GetViewVersionsRequest {
|
|
3644
|
+
page?: number;
|
|
3645
|
+
size?: number;
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
/**
|
|
3649
|
+
* @example
|
|
3650
|
+
* {
|
|
3651
|
+
* area: "widget",
|
|
3652
|
+
* name: "name",
|
|
3653
|
+
* type: "html",
|
|
3654
|
+
* engineVersion: 1,
|
|
3655
|
+
* inputs: {
|
|
3656
|
+
* "key": {
|
|
3657
|
+
* kind: "query",
|
|
3658
|
+
* queryId: "query_id"
|
|
3659
|
+
* }
|
|
3660
|
+
* },
|
|
3661
|
+
* html: "html"
|
|
3662
|
+
* }
|
|
3663
|
+
*/
|
|
3664
|
+
interface ViewCreate {
|
|
3665
|
+
/** The content area the view is written for; fixed after creation */
|
|
3666
|
+
area: ViewCreateArea;
|
|
3667
|
+
name: string;
|
|
3668
|
+
description?: string;
|
|
3669
|
+
/** What the first version shows, one line */
|
|
3670
|
+
summary?: string;
|
|
3671
|
+
/** Who produced the version: user (default), ollie or agent. Informational only */
|
|
3672
|
+
author?: ViewCreateAuthor;
|
|
3673
|
+
/** View type */
|
|
3674
|
+
type: ViewCreateType;
|
|
3675
|
+
/** HTML contract version the view was written against */
|
|
3676
|
+
engineVersion: number;
|
|
3677
|
+
/** Libraries the host loads before the view runs; none when omitted */
|
|
3678
|
+
libraries?: string[];
|
|
3679
|
+
/** Input name to data source, one or several; the view receives one data object with a key per input */
|
|
3680
|
+
inputs: Record<string, ViewInput>;
|
|
3681
|
+
/** The view: HTML, CSS and script rendered in a sandboxed iframe */
|
|
3682
|
+
html: string;
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3685
|
+
/**
|
|
3686
|
+
* @example
|
|
3687
|
+
* {
|
|
3688
|
+
* version: 1
|
|
3689
|
+
* }
|
|
3690
|
+
*/
|
|
3691
|
+
interface ViewCurrentVersion {
|
|
3692
|
+
/** An existing version number of the view, starting at 1 */
|
|
3693
|
+
version: number;
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
/**
|
|
3697
|
+
* @example
|
|
3698
|
+
* {}
|
|
3699
|
+
*/
|
|
3700
|
+
interface ViewUpdate {
|
|
3701
|
+
name?: string;
|
|
3702
|
+
/** Omit to keep the description; an empty or blank string clears it */
|
|
3703
|
+
description?: string;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* @example
|
|
3708
|
+
* {
|
|
3709
|
+
* type: "html",
|
|
3710
|
+
* engineVersion: 1,
|
|
3711
|
+
* inputs: {
|
|
3712
|
+
* "key": {
|
|
3713
|
+
* kind: "query",
|
|
3714
|
+
* queryId: "query_id"
|
|
3715
|
+
* }
|
|
3716
|
+
* },
|
|
3717
|
+
* html: "html"
|
|
3718
|
+
* }
|
|
3719
|
+
*/
|
|
3720
|
+
interface ViewVersionCreate {
|
|
3721
|
+
/** What changed, one line */
|
|
3722
|
+
summary?: string;
|
|
3723
|
+
/** Who produced the version: user (default), ollie or agent. Informational only */
|
|
3724
|
+
author?: ViewVersionCreateAuthor;
|
|
3725
|
+
/** View type */
|
|
3726
|
+
type: ViewVersionCreateType;
|
|
3727
|
+
/** HTML contract version the view was written against */
|
|
3728
|
+
engineVersion: number;
|
|
3729
|
+
/** Libraries the host loads before the view runs; none when omitted */
|
|
3730
|
+
libraries?: string[];
|
|
3731
|
+
/** Input name to data source, one or several; the view receives one data object with a key per input */
|
|
3732
|
+
inputs: Record<string, ViewInput>;
|
|
3733
|
+
/** The view: HTML, CSS and script rendered in a sandboxed iframe */
|
|
3734
|
+
html: string;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
/** The content area the view is written for; fixed after creation */
|
|
3738
|
+
declare const ViewCreateArea: {
|
|
3739
|
+
readonly Widget: "widget";
|
|
3740
|
+
};
|
|
3741
|
+
type ViewCreateArea = (typeof ViewCreateArea)[keyof typeof ViewCreateArea];
|
|
3742
|
+
|
|
3743
|
+
/** Who produced the version: user (default), ollie or agent. Informational only */
|
|
3744
|
+
declare const ViewCreateAuthor: {
|
|
3745
|
+
readonly User: "user";
|
|
3746
|
+
readonly Ollie: "ollie";
|
|
3747
|
+
readonly Agent: "agent";
|
|
3748
|
+
};
|
|
3749
|
+
type ViewCreateAuthor = (typeof ViewCreateAuthor)[keyof typeof ViewCreateAuthor];
|
|
3750
|
+
|
|
3751
|
+
/** View type */
|
|
3752
|
+
declare const ViewCreateType: {
|
|
3753
|
+
readonly Html: "html";
|
|
3754
|
+
};
|
|
3755
|
+
type ViewCreateType = (typeof ViewCreateType)[keyof typeof ViewCreateType];
|
|
3756
|
+
|
|
3757
|
+
/** Who produced the version: user (default), ollie or agent. Informational only */
|
|
3758
|
+
declare const ViewVersionCreateAuthor: {
|
|
3759
|
+
readonly User: "user";
|
|
3760
|
+
readonly Ollie: "ollie";
|
|
3761
|
+
readonly Agent: "agent";
|
|
3762
|
+
};
|
|
3763
|
+
type ViewVersionCreateAuthor = (typeof ViewVersionCreateAuthor)[keyof typeof ViewVersionCreateAuthor];
|
|
3764
|
+
|
|
3765
|
+
/** View type */
|
|
3766
|
+
declare const ViewVersionCreateType: {
|
|
3767
|
+
readonly Html: "html";
|
|
3768
|
+
};
|
|
3769
|
+
type ViewVersionCreateType = (typeof ViewVersionCreateType)[keyof typeof ViewVersionCreateType];
|
|
3770
|
+
|
|
3590
3771
|
/**
|
|
3591
3772
|
* @example
|
|
3592
3773
|
* {}
|
|
@@ -5754,6 +5935,7 @@ interface ExperimentItem {
|
|
|
5754
5935
|
executionPolicy?: ExecutionPolicy$1;
|
|
5755
5936
|
assertionResults?: AssertionResult[];
|
|
5756
5937
|
status?: ExperimentItemStatus;
|
|
5938
|
+
datasetItemData?: JsonNode;
|
|
5757
5939
|
}
|
|
5758
5940
|
|
|
5759
5941
|
interface ExperimentItemBulkRecordExperimentItemBulkWriteView {
|
|
@@ -5787,6 +5969,7 @@ interface ExperimentItemCompare {
|
|
|
5787
5969
|
executionPolicy?: ExecutionPolicyCompare;
|
|
5788
5970
|
assertionResults?: AssertionResultCompare[];
|
|
5789
5971
|
status?: ExperimentItemCompareStatus;
|
|
5972
|
+
datasetItemData?: JsonNode;
|
|
5790
5973
|
}
|
|
5791
5974
|
|
|
5792
5975
|
declare const ExperimentItemCompareStatus: {
|
|
@@ -6535,8 +6718,8 @@ interface LlmAsJudgeMessage {
|
|
|
6535
6718
|
role: LlmAsJudgeMessageRole;
|
|
6536
6719
|
content?: string;
|
|
6537
6720
|
contentArray?: LlmAsJudgeMessageContent[];
|
|
6538
|
-
structuredContent?: boolean;
|
|
6539
6721
|
stringContent?: boolean;
|
|
6722
|
+
structuredContent?: boolean;
|
|
6540
6723
|
}
|
|
6541
6724
|
|
|
6542
6725
|
interface LlmAsJudgeMessageContent {
|
|
@@ -6567,8 +6750,8 @@ interface LlmAsJudgeMessagePublic {
|
|
|
6567
6750
|
role: LlmAsJudgeMessagePublicRole;
|
|
6568
6751
|
content?: string;
|
|
6569
6752
|
contentArray?: LlmAsJudgeMessageContentPublic[];
|
|
6570
|
-
structuredContent?: boolean;
|
|
6571
6753
|
stringContent?: boolean;
|
|
6754
|
+
structuredContent?: boolean;
|
|
6572
6755
|
}
|
|
6573
6756
|
|
|
6574
6757
|
declare const LlmAsJudgeMessagePublicRole: {
|
|
@@ -6593,8 +6776,8 @@ interface LlmAsJudgeMessageWrite {
|
|
|
6593
6776
|
role: LlmAsJudgeMessageWriteRole;
|
|
6594
6777
|
content?: string;
|
|
6595
6778
|
contentArray?: LlmAsJudgeMessageContentWrite[];
|
|
6596
|
-
structuredContent?: boolean;
|
|
6597
6779
|
stringContent?: boolean;
|
|
6780
|
+
structuredContent?: boolean;
|
|
6598
6781
|
}
|
|
6599
6782
|
|
|
6600
6783
|
declare const LlmAsJudgeMessageWriteRole: {
|
|
@@ -7785,6 +7968,7 @@ interface ServiceTogglesConfig {
|
|
|
7785
7968
|
welcomeWizardEnabled: boolean;
|
|
7786
7969
|
exportEnabled: boolean;
|
|
7787
7970
|
costIntelligenceEnabled: boolean;
|
|
7971
|
+
modelPricesEnabled: boolean;
|
|
7788
7972
|
datasetVersioningEnabled: boolean;
|
|
7789
7973
|
datasetExportEnabled: boolean;
|
|
7790
7974
|
demoDataEnabled: boolean;
|
|
@@ -8912,6 +9096,106 @@ interface VideoUrlWrite {
|
|
|
8912
9096
|
url: string;
|
|
8913
9097
|
}
|
|
8914
9098
|
|
|
9099
|
+
/**
|
|
9100
|
+
* A generated view and the version that renders
|
|
9101
|
+
*/
|
|
9102
|
+
interface View {
|
|
9103
|
+
id?: string;
|
|
9104
|
+
area?: ViewArea;
|
|
9105
|
+
name?: string;
|
|
9106
|
+
description?: string;
|
|
9107
|
+
currentVersion?: number;
|
|
9108
|
+
createdAt?: Date;
|
|
9109
|
+
createdBy?: string;
|
|
9110
|
+
lastUpdatedAt?: Date;
|
|
9111
|
+
lastUpdatedBy?: string;
|
|
9112
|
+
version?: ViewVersion;
|
|
9113
|
+
}
|
|
9114
|
+
|
|
9115
|
+
declare const ViewArea: {
|
|
9116
|
+
readonly Widget: "widget";
|
|
9117
|
+
};
|
|
9118
|
+
type ViewArea = (typeof ViewArea)[keyof typeof ViewArea];
|
|
9119
|
+
|
|
9120
|
+
/**
|
|
9121
|
+
* A data source of a view; the host resolves it and passes the result under the input name
|
|
9122
|
+
*/
|
|
9123
|
+
interface ViewInput {
|
|
9124
|
+
/** Source type */
|
|
9125
|
+
kind: ViewInputKind;
|
|
9126
|
+
/** The saved query to run */
|
|
9127
|
+
queryId: string;
|
|
9128
|
+
/** The columns the author saw when it ran the query, name to type. Informational */
|
|
9129
|
+
columns?: Record<string, string>;
|
|
9130
|
+
}
|
|
9131
|
+
|
|
9132
|
+
/** Source type */
|
|
9133
|
+
declare const ViewInputKind: {
|
|
9134
|
+
readonly Query: "query";
|
|
9135
|
+
};
|
|
9136
|
+
type ViewInputKind = (typeof ViewInputKind)[keyof typeof ViewInputKind];
|
|
9137
|
+
|
|
9138
|
+
/**
|
|
9139
|
+
* An immutable version of a view
|
|
9140
|
+
*/
|
|
9141
|
+
interface ViewVersion {
|
|
9142
|
+
viewId?: string;
|
|
9143
|
+
version?: number;
|
|
9144
|
+
author?: ViewVersionAuthor;
|
|
9145
|
+
summary?: string;
|
|
9146
|
+
type?: ViewVersionType;
|
|
9147
|
+
/** HTML contract version the view was written against */
|
|
9148
|
+
engineVersion?: number;
|
|
9149
|
+
inputs?: Record<string, ViewInput>;
|
|
9150
|
+
/** Libraries the host loads before the view runs; omitted when it uses none */
|
|
9151
|
+
libraries?: string[];
|
|
9152
|
+
html?: string;
|
|
9153
|
+
createdAt?: Date;
|
|
9154
|
+
createdBy?: string;
|
|
9155
|
+
}
|
|
9156
|
+
|
|
9157
|
+
declare const ViewVersionAuthor: {
|
|
9158
|
+
readonly User: "user";
|
|
9159
|
+
readonly Ollie: "ollie";
|
|
9160
|
+
readonly Agent: "agent";
|
|
9161
|
+
};
|
|
9162
|
+
type ViewVersionAuthor = (typeof ViewVersionAuthor)[keyof typeof ViewVersionAuthor];
|
|
9163
|
+
|
|
9164
|
+
/**
|
|
9165
|
+
* A page of a view's versions, newest first
|
|
9166
|
+
*/
|
|
9167
|
+
interface ViewVersionPage {
|
|
9168
|
+
content?: ViewVersionSummary[];
|
|
9169
|
+
page?: number;
|
|
9170
|
+
/** Number of versions in this page */
|
|
9171
|
+
size?: number;
|
|
9172
|
+
total?: number;
|
|
9173
|
+
}
|
|
9174
|
+
|
|
9175
|
+
/**
|
|
9176
|
+
* A version of a view without its HTML
|
|
9177
|
+
*/
|
|
9178
|
+
interface ViewVersionSummary {
|
|
9179
|
+
version?: number;
|
|
9180
|
+
author?: ViewVersionSummaryAuthor;
|
|
9181
|
+
/** Change summary; omitted when the author gave none */
|
|
9182
|
+
summary?: string;
|
|
9183
|
+
createdAt?: Date;
|
|
9184
|
+
createdBy?: string;
|
|
9185
|
+
}
|
|
9186
|
+
|
|
9187
|
+
declare const ViewVersionSummaryAuthor: {
|
|
9188
|
+
readonly User: "user";
|
|
9189
|
+
readonly Ollie: "ollie";
|
|
9190
|
+
readonly Agent: "agent";
|
|
9191
|
+
};
|
|
9192
|
+
type ViewVersionSummaryAuthor = (typeof ViewVersionSummaryAuthor)[keyof typeof ViewVersionSummaryAuthor];
|
|
9193
|
+
|
|
9194
|
+
declare const ViewVersionType: {
|
|
9195
|
+
readonly Html: "html";
|
|
9196
|
+
};
|
|
9197
|
+
type ViewVersionType = (typeof ViewVersionType)[keyof typeof ViewVersionType];
|
|
9198
|
+
|
|
8915
9199
|
interface WebhookExamples {
|
|
8916
9200
|
responseExamples?: Record<string, Record<string, unknown>>;
|
|
8917
9201
|
}
|
|
@@ -10724,6 +11008,18 @@ declare class DatasetsClient {
|
|
|
10724
11008
|
*/
|
|
10725
11009
|
startDatasetExport(id: string, request?: StartDatasetExportRequest, requestOptions?: DatasetsClient.RequestOptions): HttpResponsePromise<DatasetExportJobPublic>;
|
|
10726
11010
|
private __startDatasetExport;
|
|
11011
|
+
/**
|
|
11012
|
+
* Stream the experiment items of every regular experiment on a dataset, one experiment item per line.
|
|
11013
|
+
* Optimizer trial, mini-batch and mutation experiments are excluded.
|
|
11014
|
+
*
|
|
11015
|
+
* Rows are ordered by experiment, then dataset item. To read the next page, send the id of the last row
|
|
11016
|
+
* received as last_retrieved_id; a page with fewer rows than the limit is the last one. Optionally also
|
|
11017
|
+
* send its experiment_id as last_retrieved_experiment_id: it is only used if that row was deleted, to
|
|
11018
|
+
* resume from the start of its experiment instead of from the start of the stream.
|
|
11019
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
11020
|
+
*/
|
|
11021
|
+
streamDatasetExperimentItems(request?: DatasetExperimentItemStreamRequest, requestOptions?: DatasetsClient.RequestOptions): HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
11022
|
+
private __streamDatasetExperimentItems;
|
|
10727
11023
|
/**
|
|
10728
11024
|
* Stream dataset items
|
|
10729
11025
|
*/
|
|
@@ -14260,6 +14556,172 @@ declare class TracesClient {
|
|
|
14260
14556
|
private __updateTraceComment;
|
|
14261
14557
|
}
|
|
14262
14558
|
|
|
14559
|
+
declare namespace ViewsClient {
|
|
14560
|
+
type Options = BaseClientOptions;
|
|
14561
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
14562
|
+
}
|
|
14563
|
+
}
|
|
14564
|
+
/**
|
|
14565
|
+
* Generated view resources
|
|
14566
|
+
*/
|
|
14567
|
+
declare class ViewsClient {
|
|
14568
|
+
protected readonly _options: NormalizedClientOptions<ViewsClient.Options>;
|
|
14569
|
+
constructor(options?: ViewsClient.Options);
|
|
14570
|
+
/**
|
|
14571
|
+
* Create a view with its first version
|
|
14572
|
+
*
|
|
14573
|
+
* @param {OpikApi.ViewCreate} request
|
|
14574
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14575
|
+
*
|
|
14576
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
14577
|
+
*
|
|
14578
|
+
* @example
|
|
14579
|
+
* await client.views.createView({
|
|
14580
|
+
* area: "widget",
|
|
14581
|
+
* name: "name",
|
|
14582
|
+
* type: "html",
|
|
14583
|
+
* engineVersion: 1,
|
|
14584
|
+
* inputs: {
|
|
14585
|
+
* "key": {
|
|
14586
|
+
* kind: "query",
|
|
14587
|
+
* queryId: "query_id"
|
|
14588
|
+
* }
|
|
14589
|
+
* },
|
|
14590
|
+
* html: "html"
|
|
14591
|
+
* })
|
|
14592
|
+
*/
|
|
14593
|
+
createView(request: ViewCreate, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<View>;
|
|
14594
|
+
private __createView;
|
|
14595
|
+
/**
|
|
14596
|
+
* List the versions of a view, newest first
|
|
14597
|
+
*
|
|
14598
|
+
* @param {string} id
|
|
14599
|
+
* @param {OpikApi.GetViewVersionsRequest} request
|
|
14600
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14601
|
+
*
|
|
14602
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
14603
|
+
*
|
|
14604
|
+
* @example
|
|
14605
|
+
* await client.views.getViewVersions("id")
|
|
14606
|
+
*/
|
|
14607
|
+
getViewVersions(id: string, request?: GetViewVersionsRequest, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<ViewVersionPage>;
|
|
14608
|
+
private __getViewVersions;
|
|
14609
|
+
/**
|
|
14610
|
+
* Add a version to a view and make it current
|
|
14611
|
+
*
|
|
14612
|
+
* @param {string} id
|
|
14613
|
+
* @param {OpikApi.ViewVersionCreate} request
|
|
14614
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14615
|
+
*
|
|
14616
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
14617
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
14618
|
+
*
|
|
14619
|
+
* @example
|
|
14620
|
+
* await client.views.createViewVersion("id", {
|
|
14621
|
+
* type: "html",
|
|
14622
|
+
* engineVersion: 1,
|
|
14623
|
+
* inputs: {
|
|
14624
|
+
* "key": {
|
|
14625
|
+
* kind: "query",
|
|
14626
|
+
* queryId: "query_id"
|
|
14627
|
+
* }
|
|
14628
|
+
* },
|
|
14629
|
+
* html: "html"
|
|
14630
|
+
* })
|
|
14631
|
+
*/
|
|
14632
|
+
createViewVersion(id: string, request: ViewVersionCreate, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<ViewVersion>;
|
|
14633
|
+
private __createViewVersion;
|
|
14634
|
+
/**
|
|
14635
|
+
* Get a view with its current version
|
|
14636
|
+
*
|
|
14637
|
+
* @param {string} id
|
|
14638
|
+
* @param {OpikApi.GetViewByIdRequest} request
|
|
14639
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14640
|
+
*
|
|
14641
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
14642
|
+
*
|
|
14643
|
+
* @example
|
|
14644
|
+
* await client.views.getViewById("id")
|
|
14645
|
+
*/
|
|
14646
|
+
getViewById(id: string, request?: GetViewByIdRequest, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<View>;
|
|
14647
|
+
private __getViewById;
|
|
14648
|
+
/**
|
|
14649
|
+
* Soft delete a view.
|
|
14650
|
+
*
|
|
14651
|
+
* @param {string} id
|
|
14652
|
+
* @param {OpikApi.DeleteViewRequest} request
|
|
14653
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14654
|
+
*
|
|
14655
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
14656
|
+
*
|
|
14657
|
+
* @example
|
|
14658
|
+
* await client.views.deleteView("id")
|
|
14659
|
+
*/
|
|
14660
|
+
deleteView(id: string, request?: DeleteViewRequest, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14661
|
+
private __deleteView;
|
|
14662
|
+
/**
|
|
14663
|
+
* Update the name and description of a view
|
|
14664
|
+
*
|
|
14665
|
+
* @param {string} id
|
|
14666
|
+
* @param {OpikApi.ViewUpdate} request
|
|
14667
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14668
|
+
*
|
|
14669
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
14670
|
+
*
|
|
14671
|
+
* @example
|
|
14672
|
+
* await client.views.updateView("id")
|
|
14673
|
+
*/
|
|
14674
|
+
updateView(id: string, request?: ViewUpdate, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<View>;
|
|
14675
|
+
private __updateView;
|
|
14676
|
+
/**
|
|
14677
|
+
* Get one version of a view
|
|
14678
|
+
*
|
|
14679
|
+
* @param {string} id
|
|
14680
|
+
* @param {number} version
|
|
14681
|
+
* @param {OpikApi.GetViewVersionRequest} request
|
|
14682
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14683
|
+
*
|
|
14684
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
14685
|
+
*
|
|
14686
|
+
* @example
|
|
14687
|
+
* await client.views.getViewVersion("id", 1)
|
|
14688
|
+
*/
|
|
14689
|
+
getViewVersion(id: string, version: number, request?: GetViewVersionRequest, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<ViewVersion>;
|
|
14690
|
+
private __getViewVersion;
|
|
14691
|
+
/**
|
|
14692
|
+
* Delete one version of a view. Refused for the current version, and so for the only version; version numbers are never reused.
|
|
14693
|
+
*
|
|
14694
|
+
* @param {string} id
|
|
14695
|
+
* @param {number} version
|
|
14696
|
+
* @param {OpikApi.DeleteViewVersionRequest} request
|
|
14697
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14698
|
+
*
|
|
14699
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
14700
|
+
* @throws {@link OpikApi.ConflictError}
|
|
14701
|
+
*
|
|
14702
|
+
* @example
|
|
14703
|
+
* await client.views.deleteViewVersion("id", 1)
|
|
14704
|
+
*/
|
|
14705
|
+
deleteViewVersion(id: string, version: number, request?: DeleteViewVersionRequest, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14706
|
+
private __deleteViewVersion;
|
|
14707
|
+
/**
|
|
14708
|
+
* Make an existing version the one that renders. Also used for rollback; writes no version.
|
|
14709
|
+
*
|
|
14710
|
+
* @param {string} id
|
|
14711
|
+
* @param {OpikApi.ViewCurrentVersion} request
|
|
14712
|
+
* @param {ViewsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14713
|
+
*
|
|
14714
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
14715
|
+
*
|
|
14716
|
+
* @example
|
|
14717
|
+
* await client.views.setViewCurrentVersion("id", {
|
|
14718
|
+
* version: 1
|
|
14719
|
+
* })
|
|
14720
|
+
*/
|
|
14721
|
+
setViewCurrentVersion(id: string, request: ViewCurrentVersion, requestOptions?: ViewsClient.RequestOptions): HttpResponsePromise<View>;
|
|
14722
|
+
private __setViewCurrentVersion;
|
|
14723
|
+
}
|
|
14724
|
+
|
|
14263
14725
|
declare namespace WelcomeWizardClient {
|
|
14264
14726
|
type Options = BaseClientOptions;
|
|
14265
14727
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -14510,6 +14972,7 @@ declare class OpikApiClient {
|
|
|
14510
14972
|
protected _serviceToggles: ServiceTogglesClient | undefined;
|
|
14511
14973
|
protected _spans: SpansClient | undefined;
|
|
14512
14974
|
protected _traces: TracesClient | undefined;
|
|
14975
|
+
protected _views: ViewsClient | undefined;
|
|
14513
14976
|
protected _welcomeWizard: WelcomeWizardClient | undefined;
|
|
14514
14977
|
protected _workspacePermissions: WorkspacePermissionsClient | undefined;
|
|
14515
14978
|
protected _workspaces: WorkspacesClient | undefined;
|
|
@@ -14555,6 +15018,7 @@ declare class OpikApiClient {
|
|
|
14555
15018
|
get serviceToggles(): ServiceTogglesClient;
|
|
14556
15019
|
get spans(): SpansClient;
|
|
14557
15020
|
get traces(): TracesClient;
|
|
15021
|
+
get views(): ViewsClient;
|
|
14558
15022
|
get welcomeWizard(): WelcomeWizardClient;
|
|
14559
15023
|
get workspacePermissions(): WorkspacePermissionsClient;
|
|
14560
15024
|
get workspaces(): WorkspacesClient;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-EWN3R4VA.js';export{va as AgentTaskCompletionJudge,ua as AgentToolCorrectnessJudge,ia as AnswerRelevance,ea as BaseLLMJudgeMetric,F as BaseMetric,G as BaseSuiteEvaluator,s as ChatPrompt,xa as ComplianceRiskJudge,l as ConfigMismatchError,k as ConfigNotFoundError,ba as Contains,B as DEFAULT_EXECUTION_POLICY,m as Dataset,i as DatasetVersion,j as DatasetVersionNotFoundError,pa as DemographicBiasJudge,na as DialogueHelpfulnessJudge,aa as ExactMatch,ja as GEval,ka as GEvalPreset,ra as GenderBiasJudge,ha as Hallucination,da as IsJson,T as LLMJudge,K as ModelConfigurationError,I as ModelError,J as ModelGenerationError,fa as Moderation,Fa as OPIK_PARENT_SPAN_ID_HEADER,Ea as OPIK_TRACE_ID_HEADER,Da as Opik,H as OpikBaseModel,t as OpikQueryLanguage,g as OpikSpanType,qa as PoliticalBiasJudge,r as Prompt,n as PromptType,wa as PromptUncertaintyJudge,oa as QARelevanceJudge,ca as RegexMatch,ta as RegionalBiasJudge,sa as ReligiousBiasJudge,S as ResponseSchema,Q as SYSTEM_PROMPT,ma as SummarizationCoherenceJudge,la as SummarizationConsistencyJudge,E as TASK_ERROR_SCORE_NAME,Ba as TestSuite,C as TestSuiteResult,v as ThreadsAnnotationQueue,u as TracesAnnotationQueue,R as USER_PROMPT_TEMPLATE,ga as Usefulness,M as VercelAIChatModel,y as activateRunner,w as agentConfigContext,D as buildSuiteResult,N as createModel,O as createModelFromInstance,V as deserializeEvaluators,L as detectProvider,c as disableLogger,_ as evaluate,$ as evaluatePrompt,Y as evaluateTestSuite,x as flushAll,h as generateId,Ga as getDistributedTraceHeaders,o as getGlobalClient,z as getTrackContext,e as isTracingActive,a as logger,q as resetGlobalClient,f as resetTracingToConfigDefault,ya as resolveEvaluators,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,P as resolveModel,Z as runTests,U as serializeEvaluators,p as setGlobalClient,b as setLoggerLevel,d as setTracingActive,A as track,za as validateEvaluators,Aa as validateExecutionPolicy,Ha as z}from'./chunk-EWN3R4VA.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-EWN3R4VA.js';export{B as DEFAULT_EXECUTION_POLICY,Ba as TestSuite,C as TestSuiteResult,D as buildSuiteResult,V as deserializeEvaluators,Y as evaluateTestSuite,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,Z as runTests,U as serializeEvaluators}from'./chunk-EWN3R4VA.js';Ca();
|