opik 2.2.66 → 2.2.68
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-XEE52V3P.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +138 -3
- package/dist/index.d.ts +138 -3
- package/dist/index.js +1 -1
- package/dist/{suite-AKZMGG7C.js → suite-S5XQIHWP.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-LWDNZ2BW.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -564,6 +564,16 @@ interface AnnotationQueueBatchWrite {
|
|
|
564
564
|
annotationQueues: AnnotationQueueWrite[];
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
+
/**
|
|
568
|
+
* @example
|
|
569
|
+
* {
|
|
570
|
+
* ids: ["ids"]
|
|
571
|
+
* }
|
|
572
|
+
*/
|
|
573
|
+
interface AnnotationQueueItemIdsPublic {
|
|
574
|
+
ids: string[];
|
|
575
|
+
}
|
|
576
|
+
|
|
567
577
|
/**
|
|
568
578
|
* @example
|
|
569
579
|
* {}
|
|
@@ -576,6 +586,7 @@ interface AnnotationQueueUpdate {
|
|
|
576
586
|
feedbackDefinitionNames?: string[];
|
|
577
587
|
annotatorsPerItem?: number;
|
|
578
588
|
lockTimeoutSeconds?: number;
|
|
589
|
+
automation?: AnnotationQueueAutomation;
|
|
579
590
|
}
|
|
580
591
|
|
|
581
592
|
/**
|
|
@@ -1746,6 +1757,9 @@ interface ClientRegistrationRequest {
|
|
|
1746
1757
|
clientName: string;
|
|
1747
1758
|
redirectUris: string[];
|
|
1748
1759
|
logoUri?: string;
|
|
1760
|
+
softwareId?: string;
|
|
1761
|
+
softwareVersion?: string;
|
|
1762
|
+
clientUri?: string;
|
|
1749
1763
|
}
|
|
1750
1764
|
|
|
1751
1765
|
/**
|
|
@@ -3869,10 +3883,43 @@ interface AnalyticsQueryResponse {
|
|
|
3869
3883
|
results?: JsonNode[];
|
|
3870
3884
|
}
|
|
3871
3885
|
|
|
3886
|
+
interface AnnotationQueueAutomation {
|
|
3887
|
+
enabled?: boolean;
|
|
3888
|
+
conditions?: Conditions;
|
|
3889
|
+
maxItemsInQueue?: number;
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
interface AnnotationQueueAutomationPublic {
|
|
3893
|
+
enabled?: boolean;
|
|
3894
|
+
conditions?: ConditionsPublic;
|
|
3895
|
+
maxItemsInQueue?: number;
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
interface AnnotationQueueAutomationWrite {
|
|
3899
|
+
enabled?: boolean;
|
|
3900
|
+
conditions?: ConditionsWrite;
|
|
3901
|
+
maxItemsInQueue?: number;
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3872
3904
|
interface AnnotationQueueItemIds {
|
|
3873
3905
|
ids: string[];
|
|
3874
3906
|
}
|
|
3875
3907
|
|
|
3908
|
+
interface AnnotationQueueItemPublic {
|
|
3909
|
+
id?: string;
|
|
3910
|
+
source?: AnnotationQueueItemPublicSource;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
declare const AnnotationQueueItemPublicSource: {
|
|
3914
|
+
readonly Manual: "manual";
|
|
3915
|
+
readonly Automated: "automated";
|
|
3916
|
+
};
|
|
3917
|
+
type AnnotationQueueItemPublicSource = (typeof AnnotationQueueItemPublicSource)[keyof typeof AnnotationQueueItemPublicSource];
|
|
3918
|
+
|
|
3919
|
+
interface AnnotationQueueItemsPublic {
|
|
3920
|
+
content?: AnnotationQueueItemPublic[];
|
|
3921
|
+
}
|
|
3922
|
+
|
|
3876
3923
|
interface AnnotationQueuePagePublic {
|
|
3877
3924
|
page?: number;
|
|
3878
3925
|
size?: number;
|
|
@@ -3893,6 +3940,7 @@ interface AnnotationQueuePublic {
|
|
|
3893
3940
|
feedbackDefinitionNames?: string[];
|
|
3894
3941
|
annotatorsPerItem?: number;
|
|
3895
3942
|
lockTimeoutSeconds?: number;
|
|
3943
|
+
automation?: AnnotationQueueAutomationPublic;
|
|
3896
3944
|
reviewers?: AnnotationQueueReviewerPublic[];
|
|
3897
3945
|
feedbackScores?: FeedbackScoreAveragePublic[];
|
|
3898
3946
|
itemsCount?: number;
|
|
@@ -3927,6 +3975,7 @@ interface AnnotationQueueWrite {
|
|
|
3927
3975
|
feedbackDefinitionNames?: string[];
|
|
3928
3976
|
annotatorsPerItem?: number;
|
|
3929
3977
|
lockTimeoutSeconds?: number;
|
|
3978
|
+
automation?: AnnotationQueueAutomationWrite;
|
|
3930
3979
|
}
|
|
3931
3980
|
|
|
3932
3981
|
declare const AnnotationQueueWriteScope: {
|
|
@@ -4100,6 +4149,7 @@ declare namespace AutomationRuleEvaluatorObjectObjectPublic {
|
|
|
4100
4149
|
|
|
4101
4150
|
declare const AutomationRuleEvaluatorObjectObjectPublicAction: {
|
|
4102
4151
|
readonly Evaluator: "evaluator";
|
|
4152
|
+
readonly AnnotationQueueRouter: "annotation_queue_router";
|
|
4103
4153
|
};
|
|
4104
4154
|
type AutomationRuleEvaluatorObjectObjectPublicAction = (typeof AutomationRuleEvaluatorObjectObjectPublicAction)[keyof typeof AutomationRuleEvaluatorObjectObjectPublicAction];
|
|
4105
4155
|
|
|
@@ -4163,6 +4213,7 @@ declare namespace AutomationRuleEvaluatorPublic {
|
|
|
4163
4213
|
|
|
4164
4214
|
declare const AutomationRuleEvaluatorPublicAction: {
|
|
4165
4215
|
readonly Evaluator: "evaluator";
|
|
4216
|
+
readonly AnnotationQueueRouter: "annotation_queue_router";
|
|
4166
4217
|
};
|
|
4167
4218
|
type AutomationRuleEvaluatorPublicAction = (typeof AutomationRuleEvaluatorPublicAction)[keyof typeof AutomationRuleEvaluatorPublicAction];
|
|
4168
4219
|
|
|
@@ -4250,6 +4301,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
|
|
|
4250
4301
|
|
|
4251
4302
|
declare const AutomationRuleEvaluatorUpdateAction: {
|
|
4252
4303
|
readonly Evaluator: "evaluator";
|
|
4304
|
+
readonly AnnotationQueueRouter: "annotation_queue_router";
|
|
4253
4305
|
};
|
|
4254
4306
|
type AutomationRuleEvaluatorUpdateAction = (typeof AutomationRuleEvaluatorUpdateAction)[keyof typeof AutomationRuleEvaluatorUpdateAction];
|
|
4255
4307
|
|
|
@@ -4337,6 +4389,7 @@ declare namespace AutomationRuleEvaluatorWrite {
|
|
|
4337
4389
|
|
|
4338
4390
|
declare const AutomationRuleEvaluatorWriteAction: {
|
|
4339
4391
|
readonly Evaluator: "evaluator";
|
|
4392
|
+
readonly AnnotationQueueRouter: "annotation_queue_router";
|
|
4340
4393
|
};
|
|
4341
4394
|
type AutomationRuleEvaluatorWriteAction = (typeof AutomationRuleEvaluatorWriteAction)[keyof typeof AutomationRuleEvaluatorWriteAction];
|
|
4342
4395
|
|
|
@@ -4601,6 +4654,9 @@ interface ClientRegistrationResponse {
|
|
|
4601
4654
|
clientIdIssuedAt?: number;
|
|
4602
4655
|
clientName?: string;
|
|
4603
4656
|
logoUri?: string;
|
|
4657
|
+
softwareId?: string;
|
|
4658
|
+
softwareVersion?: string;
|
|
4659
|
+
clientUri?: string;
|
|
4604
4660
|
redirectUris?: string[];
|
|
4605
4661
|
tokenEndpointAuthMethod?: string;
|
|
4606
4662
|
grantTypes?: string[];
|
|
@@ -4714,6 +4770,30 @@ interface CompletionTokensDetails {
|
|
|
4714
4770
|
reasoningTokens?: number;
|
|
4715
4771
|
}
|
|
4716
4772
|
|
|
4773
|
+
interface ConditionGroup {
|
|
4774
|
+
conditions: ScoreCondition[];
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
interface ConditionGroupPublic {
|
|
4778
|
+
conditions: ScoreConditionPublic[];
|
|
4779
|
+
}
|
|
4780
|
+
|
|
4781
|
+
interface ConditionGroupWrite {
|
|
4782
|
+
conditions: ScoreConditionWrite[];
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
interface Conditions {
|
|
4786
|
+
groups: ConditionGroup[];
|
|
4787
|
+
}
|
|
4788
|
+
|
|
4789
|
+
interface ConditionsPublic {
|
|
4790
|
+
groups: ConditionGroupPublic[];
|
|
4791
|
+
}
|
|
4792
|
+
|
|
4793
|
+
interface ConditionsWrite {
|
|
4794
|
+
groups: ConditionGroupWrite[];
|
|
4795
|
+
}
|
|
4796
|
+
|
|
4717
4797
|
interface ConsentResponse {
|
|
4718
4798
|
redirectTo?: string;
|
|
4719
4799
|
}
|
|
@@ -6075,8 +6155,8 @@ interface LlmAsJudgeMessage {
|
|
|
6075
6155
|
role: LlmAsJudgeMessageRole;
|
|
6076
6156
|
content?: string;
|
|
6077
6157
|
contentArray?: LlmAsJudgeMessageContent[];
|
|
6078
|
-
stringContent?: boolean;
|
|
6079
6158
|
structuredContent?: boolean;
|
|
6159
|
+
stringContent?: boolean;
|
|
6080
6160
|
}
|
|
6081
6161
|
|
|
6082
6162
|
interface LlmAsJudgeMessageContent {
|
|
@@ -6107,8 +6187,8 @@ interface LlmAsJudgeMessagePublic {
|
|
|
6107
6187
|
role: LlmAsJudgeMessagePublicRole;
|
|
6108
6188
|
content?: string;
|
|
6109
6189
|
contentArray?: LlmAsJudgeMessageContentPublic[];
|
|
6110
|
-
stringContent?: boolean;
|
|
6111
6190
|
structuredContent?: boolean;
|
|
6191
|
+
stringContent?: boolean;
|
|
6112
6192
|
}
|
|
6113
6193
|
|
|
6114
6194
|
declare const LlmAsJudgeMessagePublicRole: {
|
|
@@ -6133,8 +6213,8 @@ interface LlmAsJudgeMessageWrite {
|
|
|
6133
6213
|
role: LlmAsJudgeMessageWriteRole;
|
|
6134
6214
|
content?: string;
|
|
6135
6215
|
contentArray?: LlmAsJudgeMessageContentWrite[];
|
|
6136
|
-
stringContent?: boolean;
|
|
6137
6216
|
structuredContent?: boolean;
|
|
6217
|
+
stringContent?: boolean;
|
|
6138
6218
|
}
|
|
6139
6219
|
|
|
6140
6220
|
declare const LlmAsJudgeMessageWriteRole: {
|
|
@@ -7204,6 +7284,45 @@ declare const RetentionRulePublicRetention: {
|
|
|
7204
7284
|
};
|
|
7205
7285
|
type RetentionRulePublicRetention = (typeof RetentionRulePublicRetention)[keyof typeof RetentionRulePublicRetention];
|
|
7206
7286
|
|
|
7287
|
+
interface ScoreCondition {
|
|
7288
|
+
scoreName: string;
|
|
7289
|
+
operator: ScoreConditionOperator;
|
|
7290
|
+
value: number;
|
|
7291
|
+
}
|
|
7292
|
+
|
|
7293
|
+
declare const ScoreConditionOperator: {
|
|
7294
|
+
readonly GreaterThan: ">";
|
|
7295
|
+
readonly LessThan: "<";
|
|
7296
|
+
readonly EqualTo: "=";
|
|
7297
|
+
};
|
|
7298
|
+
type ScoreConditionOperator = (typeof ScoreConditionOperator)[keyof typeof ScoreConditionOperator];
|
|
7299
|
+
|
|
7300
|
+
interface ScoreConditionPublic {
|
|
7301
|
+
scoreName: string;
|
|
7302
|
+
operator: ScoreConditionPublicOperator;
|
|
7303
|
+
value: number;
|
|
7304
|
+
}
|
|
7305
|
+
|
|
7306
|
+
declare const ScoreConditionPublicOperator: {
|
|
7307
|
+
readonly GreaterThan: ">";
|
|
7308
|
+
readonly LessThan: "<";
|
|
7309
|
+
readonly EqualTo: "=";
|
|
7310
|
+
};
|
|
7311
|
+
type ScoreConditionPublicOperator = (typeof ScoreConditionPublicOperator)[keyof typeof ScoreConditionPublicOperator];
|
|
7312
|
+
|
|
7313
|
+
interface ScoreConditionWrite {
|
|
7314
|
+
scoreName: string;
|
|
7315
|
+
operator: ScoreConditionWriteOperator;
|
|
7316
|
+
value: number;
|
|
7317
|
+
}
|
|
7318
|
+
|
|
7319
|
+
declare const ScoreConditionWriteOperator: {
|
|
7320
|
+
readonly GreaterThan: ">";
|
|
7321
|
+
readonly LessThan: "<";
|
|
7322
|
+
readonly EqualTo: "=";
|
|
7323
|
+
};
|
|
7324
|
+
type ScoreConditionWriteOperator = (typeof ScoreConditionWriteOperator)[keyof typeof ScoreConditionWriteOperator];
|
|
7325
|
+
|
|
7207
7326
|
interface ScoreName {
|
|
7208
7327
|
name?: string;
|
|
7209
7328
|
type?: string;
|
|
@@ -9120,6 +9239,22 @@ declare class AnnotationQueuesClient {
|
|
|
9120
9239
|
*/
|
|
9121
9240
|
removeItemsFromAnnotationQueue(id: string, request: RemoveItemsFromAnnotationQueueRequest, requestOptions?: AnnotationQueuesClient.RequestOptions): HttpResponsePromise<void>;
|
|
9122
9241
|
private __removeItemsFromAnnotationQueue;
|
|
9242
|
+
/**
|
|
9243
|
+
* Returns queue membership metadata — how each item got into the queue — for the given item ids. A lookup rather than a listing: the caller renders the items table from the traces or threads API with its own sort and filters, so it asks for exactly the ids it is displaying. Ids that are not in the queue are omitted.
|
|
9244
|
+
*
|
|
9245
|
+
* @param {string} id
|
|
9246
|
+
* @param {OpikApi.AnnotationQueueItemIdsPublic} request
|
|
9247
|
+
* @param {AnnotationQueuesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
9248
|
+
*
|
|
9249
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
9250
|
+
*
|
|
9251
|
+
* @example
|
|
9252
|
+
* await client.annotationQueues.searchAnnotationQueueItems("id", {
|
|
9253
|
+
* ids: ["ids"]
|
|
9254
|
+
* })
|
|
9255
|
+
*/
|
|
9256
|
+
searchAnnotationQueueItems(id: string, request: AnnotationQueueItemIdsPublic, requestOptions?: AnnotationQueuesClient.RequestOptions): HttpResponsePromise<AnnotationQueueItemsPublic>;
|
|
9257
|
+
private __searchAnnotationQueueItems;
|
|
9123
9258
|
}
|
|
9124
9259
|
|
|
9125
9260
|
declare namespace AssertionResultsClient {
|
package/dist/index.d.ts
CHANGED
|
@@ -564,6 +564,16 @@ interface AnnotationQueueBatchWrite {
|
|
|
564
564
|
annotationQueues: AnnotationQueueWrite[];
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
+
/**
|
|
568
|
+
* @example
|
|
569
|
+
* {
|
|
570
|
+
* ids: ["ids"]
|
|
571
|
+
* }
|
|
572
|
+
*/
|
|
573
|
+
interface AnnotationQueueItemIdsPublic {
|
|
574
|
+
ids: string[];
|
|
575
|
+
}
|
|
576
|
+
|
|
567
577
|
/**
|
|
568
578
|
* @example
|
|
569
579
|
* {}
|
|
@@ -576,6 +586,7 @@ interface AnnotationQueueUpdate {
|
|
|
576
586
|
feedbackDefinitionNames?: string[];
|
|
577
587
|
annotatorsPerItem?: number;
|
|
578
588
|
lockTimeoutSeconds?: number;
|
|
589
|
+
automation?: AnnotationQueueAutomation;
|
|
579
590
|
}
|
|
580
591
|
|
|
581
592
|
/**
|
|
@@ -1746,6 +1757,9 @@ interface ClientRegistrationRequest {
|
|
|
1746
1757
|
clientName: string;
|
|
1747
1758
|
redirectUris: string[];
|
|
1748
1759
|
logoUri?: string;
|
|
1760
|
+
softwareId?: string;
|
|
1761
|
+
softwareVersion?: string;
|
|
1762
|
+
clientUri?: string;
|
|
1749
1763
|
}
|
|
1750
1764
|
|
|
1751
1765
|
/**
|
|
@@ -3869,10 +3883,43 @@ interface AnalyticsQueryResponse {
|
|
|
3869
3883
|
results?: JsonNode[];
|
|
3870
3884
|
}
|
|
3871
3885
|
|
|
3886
|
+
interface AnnotationQueueAutomation {
|
|
3887
|
+
enabled?: boolean;
|
|
3888
|
+
conditions?: Conditions;
|
|
3889
|
+
maxItemsInQueue?: number;
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
interface AnnotationQueueAutomationPublic {
|
|
3893
|
+
enabled?: boolean;
|
|
3894
|
+
conditions?: ConditionsPublic;
|
|
3895
|
+
maxItemsInQueue?: number;
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
interface AnnotationQueueAutomationWrite {
|
|
3899
|
+
enabled?: boolean;
|
|
3900
|
+
conditions?: ConditionsWrite;
|
|
3901
|
+
maxItemsInQueue?: number;
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3872
3904
|
interface AnnotationQueueItemIds {
|
|
3873
3905
|
ids: string[];
|
|
3874
3906
|
}
|
|
3875
3907
|
|
|
3908
|
+
interface AnnotationQueueItemPublic {
|
|
3909
|
+
id?: string;
|
|
3910
|
+
source?: AnnotationQueueItemPublicSource;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
declare const AnnotationQueueItemPublicSource: {
|
|
3914
|
+
readonly Manual: "manual";
|
|
3915
|
+
readonly Automated: "automated";
|
|
3916
|
+
};
|
|
3917
|
+
type AnnotationQueueItemPublicSource = (typeof AnnotationQueueItemPublicSource)[keyof typeof AnnotationQueueItemPublicSource];
|
|
3918
|
+
|
|
3919
|
+
interface AnnotationQueueItemsPublic {
|
|
3920
|
+
content?: AnnotationQueueItemPublic[];
|
|
3921
|
+
}
|
|
3922
|
+
|
|
3876
3923
|
interface AnnotationQueuePagePublic {
|
|
3877
3924
|
page?: number;
|
|
3878
3925
|
size?: number;
|
|
@@ -3893,6 +3940,7 @@ interface AnnotationQueuePublic {
|
|
|
3893
3940
|
feedbackDefinitionNames?: string[];
|
|
3894
3941
|
annotatorsPerItem?: number;
|
|
3895
3942
|
lockTimeoutSeconds?: number;
|
|
3943
|
+
automation?: AnnotationQueueAutomationPublic;
|
|
3896
3944
|
reviewers?: AnnotationQueueReviewerPublic[];
|
|
3897
3945
|
feedbackScores?: FeedbackScoreAveragePublic[];
|
|
3898
3946
|
itemsCount?: number;
|
|
@@ -3927,6 +3975,7 @@ interface AnnotationQueueWrite {
|
|
|
3927
3975
|
feedbackDefinitionNames?: string[];
|
|
3928
3976
|
annotatorsPerItem?: number;
|
|
3929
3977
|
lockTimeoutSeconds?: number;
|
|
3978
|
+
automation?: AnnotationQueueAutomationWrite;
|
|
3930
3979
|
}
|
|
3931
3980
|
|
|
3932
3981
|
declare const AnnotationQueueWriteScope: {
|
|
@@ -4100,6 +4149,7 @@ declare namespace AutomationRuleEvaluatorObjectObjectPublic {
|
|
|
4100
4149
|
|
|
4101
4150
|
declare const AutomationRuleEvaluatorObjectObjectPublicAction: {
|
|
4102
4151
|
readonly Evaluator: "evaluator";
|
|
4152
|
+
readonly AnnotationQueueRouter: "annotation_queue_router";
|
|
4103
4153
|
};
|
|
4104
4154
|
type AutomationRuleEvaluatorObjectObjectPublicAction = (typeof AutomationRuleEvaluatorObjectObjectPublicAction)[keyof typeof AutomationRuleEvaluatorObjectObjectPublicAction];
|
|
4105
4155
|
|
|
@@ -4163,6 +4213,7 @@ declare namespace AutomationRuleEvaluatorPublic {
|
|
|
4163
4213
|
|
|
4164
4214
|
declare const AutomationRuleEvaluatorPublicAction: {
|
|
4165
4215
|
readonly Evaluator: "evaluator";
|
|
4216
|
+
readonly AnnotationQueueRouter: "annotation_queue_router";
|
|
4166
4217
|
};
|
|
4167
4218
|
type AutomationRuleEvaluatorPublicAction = (typeof AutomationRuleEvaluatorPublicAction)[keyof typeof AutomationRuleEvaluatorPublicAction];
|
|
4168
4219
|
|
|
@@ -4250,6 +4301,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
|
|
|
4250
4301
|
|
|
4251
4302
|
declare const AutomationRuleEvaluatorUpdateAction: {
|
|
4252
4303
|
readonly Evaluator: "evaluator";
|
|
4304
|
+
readonly AnnotationQueueRouter: "annotation_queue_router";
|
|
4253
4305
|
};
|
|
4254
4306
|
type AutomationRuleEvaluatorUpdateAction = (typeof AutomationRuleEvaluatorUpdateAction)[keyof typeof AutomationRuleEvaluatorUpdateAction];
|
|
4255
4307
|
|
|
@@ -4337,6 +4389,7 @@ declare namespace AutomationRuleEvaluatorWrite {
|
|
|
4337
4389
|
|
|
4338
4390
|
declare const AutomationRuleEvaluatorWriteAction: {
|
|
4339
4391
|
readonly Evaluator: "evaluator";
|
|
4392
|
+
readonly AnnotationQueueRouter: "annotation_queue_router";
|
|
4340
4393
|
};
|
|
4341
4394
|
type AutomationRuleEvaluatorWriteAction = (typeof AutomationRuleEvaluatorWriteAction)[keyof typeof AutomationRuleEvaluatorWriteAction];
|
|
4342
4395
|
|
|
@@ -4601,6 +4654,9 @@ interface ClientRegistrationResponse {
|
|
|
4601
4654
|
clientIdIssuedAt?: number;
|
|
4602
4655
|
clientName?: string;
|
|
4603
4656
|
logoUri?: string;
|
|
4657
|
+
softwareId?: string;
|
|
4658
|
+
softwareVersion?: string;
|
|
4659
|
+
clientUri?: string;
|
|
4604
4660
|
redirectUris?: string[];
|
|
4605
4661
|
tokenEndpointAuthMethod?: string;
|
|
4606
4662
|
grantTypes?: string[];
|
|
@@ -4714,6 +4770,30 @@ interface CompletionTokensDetails {
|
|
|
4714
4770
|
reasoningTokens?: number;
|
|
4715
4771
|
}
|
|
4716
4772
|
|
|
4773
|
+
interface ConditionGroup {
|
|
4774
|
+
conditions: ScoreCondition[];
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
interface ConditionGroupPublic {
|
|
4778
|
+
conditions: ScoreConditionPublic[];
|
|
4779
|
+
}
|
|
4780
|
+
|
|
4781
|
+
interface ConditionGroupWrite {
|
|
4782
|
+
conditions: ScoreConditionWrite[];
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
interface Conditions {
|
|
4786
|
+
groups: ConditionGroup[];
|
|
4787
|
+
}
|
|
4788
|
+
|
|
4789
|
+
interface ConditionsPublic {
|
|
4790
|
+
groups: ConditionGroupPublic[];
|
|
4791
|
+
}
|
|
4792
|
+
|
|
4793
|
+
interface ConditionsWrite {
|
|
4794
|
+
groups: ConditionGroupWrite[];
|
|
4795
|
+
}
|
|
4796
|
+
|
|
4717
4797
|
interface ConsentResponse {
|
|
4718
4798
|
redirectTo?: string;
|
|
4719
4799
|
}
|
|
@@ -6075,8 +6155,8 @@ interface LlmAsJudgeMessage {
|
|
|
6075
6155
|
role: LlmAsJudgeMessageRole;
|
|
6076
6156
|
content?: string;
|
|
6077
6157
|
contentArray?: LlmAsJudgeMessageContent[];
|
|
6078
|
-
stringContent?: boolean;
|
|
6079
6158
|
structuredContent?: boolean;
|
|
6159
|
+
stringContent?: boolean;
|
|
6080
6160
|
}
|
|
6081
6161
|
|
|
6082
6162
|
interface LlmAsJudgeMessageContent {
|
|
@@ -6107,8 +6187,8 @@ interface LlmAsJudgeMessagePublic {
|
|
|
6107
6187
|
role: LlmAsJudgeMessagePublicRole;
|
|
6108
6188
|
content?: string;
|
|
6109
6189
|
contentArray?: LlmAsJudgeMessageContentPublic[];
|
|
6110
|
-
stringContent?: boolean;
|
|
6111
6190
|
structuredContent?: boolean;
|
|
6191
|
+
stringContent?: boolean;
|
|
6112
6192
|
}
|
|
6113
6193
|
|
|
6114
6194
|
declare const LlmAsJudgeMessagePublicRole: {
|
|
@@ -6133,8 +6213,8 @@ interface LlmAsJudgeMessageWrite {
|
|
|
6133
6213
|
role: LlmAsJudgeMessageWriteRole;
|
|
6134
6214
|
content?: string;
|
|
6135
6215
|
contentArray?: LlmAsJudgeMessageContentWrite[];
|
|
6136
|
-
stringContent?: boolean;
|
|
6137
6216
|
structuredContent?: boolean;
|
|
6217
|
+
stringContent?: boolean;
|
|
6138
6218
|
}
|
|
6139
6219
|
|
|
6140
6220
|
declare const LlmAsJudgeMessageWriteRole: {
|
|
@@ -7204,6 +7284,45 @@ declare const RetentionRulePublicRetention: {
|
|
|
7204
7284
|
};
|
|
7205
7285
|
type RetentionRulePublicRetention = (typeof RetentionRulePublicRetention)[keyof typeof RetentionRulePublicRetention];
|
|
7206
7286
|
|
|
7287
|
+
interface ScoreCondition {
|
|
7288
|
+
scoreName: string;
|
|
7289
|
+
operator: ScoreConditionOperator;
|
|
7290
|
+
value: number;
|
|
7291
|
+
}
|
|
7292
|
+
|
|
7293
|
+
declare const ScoreConditionOperator: {
|
|
7294
|
+
readonly GreaterThan: ">";
|
|
7295
|
+
readonly LessThan: "<";
|
|
7296
|
+
readonly EqualTo: "=";
|
|
7297
|
+
};
|
|
7298
|
+
type ScoreConditionOperator = (typeof ScoreConditionOperator)[keyof typeof ScoreConditionOperator];
|
|
7299
|
+
|
|
7300
|
+
interface ScoreConditionPublic {
|
|
7301
|
+
scoreName: string;
|
|
7302
|
+
operator: ScoreConditionPublicOperator;
|
|
7303
|
+
value: number;
|
|
7304
|
+
}
|
|
7305
|
+
|
|
7306
|
+
declare const ScoreConditionPublicOperator: {
|
|
7307
|
+
readonly GreaterThan: ">";
|
|
7308
|
+
readonly LessThan: "<";
|
|
7309
|
+
readonly EqualTo: "=";
|
|
7310
|
+
};
|
|
7311
|
+
type ScoreConditionPublicOperator = (typeof ScoreConditionPublicOperator)[keyof typeof ScoreConditionPublicOperator];
|
|
7312
|
+
|
|
7313
|
+
interface ScoreConditionWrite {
|
|
7314
|
+
scoreName: string;
|
|
7315
|
+
operator: ScoreConditionWriteOperator;
|
|
7316
|
+
value: number;
|
|
7317
|
+
}
|
|
7318
|
+
|
|
7319
|
+
declare const ScoreConditionWriteOperator: {
|
|
7320
|
+
readonly GreaterThan: ">";
|
|
7321
|
+
readonly LessThan: "<";
|
|
7322
|
+
readonly EqualTo: "=";
|
|
7323
|
+
};
|
|
7324
|
+
type ScoreConditionWriteOperator = (typeof ScoreConditionWriteOperator)[keyof typeof ScoreConditionWriteOperator];
|
|
7325
|
+
|
|
7207
7326
|
interface ScoreName {
|
|
7208
7327
|
name?: string;
|
|
7209
7328
|
type?: string;
|
|
@@ -9120,6 +9239,22 @@ declare class AnnotationQueuesClient {
|
|
|
9120
9239
|
*/
|
|
9121
9240
|
removeItemsFromAnnotationQueue(id: string, request: RemoveItemsFromAnnotationQueueRequest, requestOptions?: AnnotationQueuesClient.RequestOptions): HttpResponsePromise<void>;
|
|
9122
9241
|
private __removeItemsFromAnnotationQueue;
|
|
9242
|
+
/**
|
|
9243
|
+
* Returns queue membership metadata — how each item got into the queue — for the given item ids. A lookup rather than a listing: the caller renders the items table from the traces or threads API with its own sort and filters, so it asks for exactly the ids it is displaying. Ids that are not in the queue are omitted.
|
|
9244
|
+
*
|
|
9245
|
+
* @param {string} id
|
|
9246
|
+
* @param {OpikApi.AnnotationQueueItemIdsPublic} request
|
|
9247
|
+
* @param {AnnotationQueuesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
9248
|
+
*
|
|
9249
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
9250
|
+
*
|
|
9251
|
+
* @example
|
|
9252
|
+
* await client.annotationQueues.searchAnnotationQueueItems("id", {
|
|
9253
|
+
* ids: ["ids"]
|
|
9254
|
+
* })
|
|
9255
|
+
*/
|
|
9256
|
+
searchAnnotationQueueItems(id: string, request: AnnotationQueueItemIdsPublic, requestOptions?: AnnotationQueuesClient.RequestOptions): HttpResponsePromise<AnnotationQueueItemsPublic>;
|
|
9257
|
+
private __searchAnnotationQueueItems;
|
|
9123
9258
|
}
|
|
9124
9259
|
|
|
9125
9260
|
declare namespace AssertionResultsClient {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-XEE52V3P.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-XEE52V3P.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-XEE52V3P.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-XEE52V3P.js';Ca();
|