opik 2.2.3 → 2.2.5
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-KMATOW3N.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +61 -2
- package/dist/index.d.ts +61 -2
- package/dist/index.js +1 -1
- package/dist/{suite-JQGBFRRK.js → suite-6ZPYLYZQ.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-UWEW2JHE.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -3744,6 +3744,7 @@ declare const AlertTriggerConfigPublicType: {
|
|
|
3744
3744
|
readonly ThresholdCost: "threshold:cost";
|
|
3745
3745
|
readonly ThresholdLatency: "threshold:latency";
|
|
3746
3746
|
readonly ThresholdErrors: "threshold:errors";
|
|
3747
|
+
readonly FilterGuardrailType: "filter:guardrail_type";
|
|
3747
3748
|
};
|
|
3748
3749
|
type AlertTriggerConfigPublicType = (typeof AlertTriggerConfigPublicType)[keyof typeof AlertTriggerConfigPublicType];
|
|
3749
3750
|
|
|
@@ -3761,6 +3762,7 @@ declare const AlertTriggerConfigWriteType: {
|
|
|
3761
3762
|
readonly ThresholdCost: "threshold:cost";
|
|
3762
3763
|
readonly ThresholdLatency: "threshold:latency";
|
|
3763
3764
|
readonly ThresholdErrors: "threshold:errors";
|
|
3765
|
+
readonly FilterGuardrailType: "filter:guardrail_type";
|
|
3764
3766
|
};
|
|
3765
3767
|
type AlertTriggerConfigWriteType = (typeof AlertTriggerConfigWriteType)[keyof typeof AlertTriggerConfigWriteType];
|
|
3766
3768
|
|
|
@@ -4048,6 +4050,8 @@ declare namespace AutomationRuleEvaluatorObjectObjectPublic {
|
|
|
4048
4050
|
name: string;
|
|
4049
4051
|
samplingRate?: number;
|
|
4050
4052
|
enabled?: boolean;
|
|
4053
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4054
|
+
triggerScope?: AutomationRuleEvaluatorObjectObjectPublicTriggerScope;
|
|
4051
4055
|
createdAt?: Date;
|
|
4052
4056
|
createdBy?: string;
|
|
4053
4057
|
lastUpdatedAt?: Date;
|
|
@@ -4061,6 +4065,14 @@ declare const AutomationRuleEvaluatorObjectObjectPublicAction: {
|
|
|
4061
4065
|
};
|
|
4062
4066
|
type AutomationRuleEvaluatorObjectObjectPublicAction = (typeof AutomationRuleEvaluatorObjectObjectPublicAction)[keyof typeof AutomationRuleEvaluatorObjectObjectPublicAction];
|
|
4063
4067
|
|
|
4068
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4069
|
+
declare const AutomationRuleEvaluatorObjectObjectPublicTriggerScope: {
|
|
4070
|
+
readonly Production: "production";
|
|
4071
|
+
readonly Experiment: "experiment";
|
|
4072
|
+
readonly Both: "both";
|
|
4073
|
+
};
|
|
4074
|
+
type AutomationRuleEvaluatorObjectObjectPublicTriggerScope = (typeof AutomationRuleEvaluatorObjectObjectPublicTriggerScope)[keyof typeof AutomationRuleEvaluatorObjectObjectPublicTriggerScope];
|
|
4075
|
+
|
|
4064
4076
|
interface AutomationRuleEvaluatorPagePublic {
|
|
4065
4077
|
page?: number;
|
|
4066
4078
|
size?: number;
|
|
@@ -4100,6 +4112,8 @@ declare namespace AutomationRuleEvaluatorPublic {
|
|
|
4100
4112
|
name: string;
|
|
4101
4113
|
samplingRate?: number;
|
|
4102
4114
|
enabled?: boolean;
|
|
4115
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4116
|
+
triggerScope?: AutomationRuleEvaluatorPublicTriggerScope;
|
|
4103
4117
|
createdAt?: Date;
|
|
4104
4118
|
createdBy?: string;
|
|
4105
4119
|
lastUpdatedAt?: Date;
|
|
@@ -4113,6 +4127,14 @@ declare const AutomationRuleEvaluatorPublicAction: {
|
|
|
4113
4127
|
};
|
|
4114
4128
|
type AutomationRuleEvaluatorPublicAction = (typeof AutomationRuleEvaluatorPublicAction)[keyof typeof AutomationRuleEvaluatorPublicAction];
|
|
4115
4129
|
|
|
4130
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4131
|
+
declare const AutomationRuleEvaluatorPublicTriggerScope: {
|
|
4132
|
+
readonly Production: "production";
|
|
4133
|
+
readonly Experiment: "experiment";
|
|
4134
|
+
readonly Both: "both";
|
|
4135
|
+
};
|
|
4136
|
+
type AutomationRuleEvaluatorPublicTriggerScope = (typeof AutomationRuleEvaluatorPublicTriggerScope)[keyof typeof AutomationRuleEvaluatorPublicTriggerScope];
|
|
4137
|
+
|
|
4116
4138
|
interface AutomationRuleEvaluatorSpanLlmAsJudgePublic {
|
|
4117
4139
|
filters?: SpanFilterPublic[];
|
|
4118
4140
|
code?: SpanLlmAsJudgeCodePublic;
|
|
@@ -4177,6 +4199,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
|
|
|
4177
4199
|
name: string;
|
|
4178
4200
|
samplingRate?: number;
|
|
4179
4201
|
enabled?: boolean;
|
|
4202
|
+
triggerScope?: AutomationRuleEvaluatorUpdateTriggerScope;
|
|
4180
4203
|
/** Primary project ID (legacy field, maintained for backwards compatibility) */
|
|
4181
4204
|
projectId?: string;
|
|
4182
4205
|
/** Multiple project IDs (new field for multi-project support) */
|
|
@@ -4215,6 +4238,13 @@ interface AutomationRuleEvaluatorUpdateTraceThreadUserDefinedMetricPython {
|
|
|
4215
4238
|
code?: TraceThreadUserDefinedMetricPythonCode;
|
|
4216
4239
|
}
|
|
4217
4240
|
|
|
4241
|
+
declare const AutomationRuleEvaluatorUpdateTriggerScope: {
|
|
4242
|
+
readonly Production: "production";
|
|
4243
|
+
readonly Experiment: "experiment";
|
|
4244
|
+
readonly Both: "both";
|
|
4245
|
+
};
|
|
4246
|
+
type AutomationRuleEvaluatorUpdateTriggerScope = (typeof AutomationRuleEvaluatorUpdateTriggerScope)[keyof typeof AutomationRuleEvaluatorUpdateTriggerScope];
|
|
4247
|
+
|
|
4218
4248
|
interface AutomationRuleEvaluatorUpdateUserDefinedMetricPython {
|
|
4219
4249
|
filters?: TraceFilter[];
|
|
4220
4250
|
code?: UserDefinedMetricPythonCode;
|
|
@@ -4258,6 +4288,8 @@ declare namespace AutomationRuleEvaluatorWrite {
|
|
|
4258
4288
|
name: string;
|
|
4259
4289
|
samplingRate?: number;
|
|
4260
4290
|
enabled?: boolean;
|
|
4291
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4292
|
+
triggerScope?: AutomationRuleEvaluatorWriteTriggerScope;
|
|
4261
4293
|
action: AutomationRuleEvaluatorWriteAction;
|
|
4262
4294
|
}
|
|
4263
4295
|
}
|
|
@@ -4267,6 +4299,14 @@ declare const AutomationRuleEvaluatorWriteAction: {
|
|
|
4267
4299
|
};
|
|
4268
4300
|
type AutomationRuleEvaluatorWriteAction = (typeof AutomationRuleEvaluatorWriteAction)[keyof typeof AutomationRuleEvaluatorWriteAction];
|
|
4269
4301
|
|
|
4302
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4303
|
+
declare const AutomationRuleEvaluatorWriteTriggerScope: {
|
|
4304
|
+
readonly Production: "production";
|
|
4305
|
+
readonly Experiment: "experiment";
|
|
4306
|
+
readonly Both: "both";
|
|
4307
|
+
};
|
|
4308
|
+
type AutomationRuleEvaluatorWriteTriggerScope = (typeof AutomationRuleEvaluatorWriteTriggerScope)[keyof typeof AutomationRuleEvaluatorWriteTriggerScope];
|
|
4309
|
+
|
|
4270
4310
|
interface AvgValueStatPublic {
|
|
4271
4311
|
value?: number;
|
|
4272
4312
|
}
|
|
@@ -4345,6 +4385,7 @@ declare const BreakdownConfigField: {
|
|
|
4345
4385
|
readonly Model: "model";
|
|
4346
4386
|
readonly Provider: "provider";
|
|
4347
4387
|
readonly Type: "type";
|
|
4388
|
+
readonly GuardrailName: "guardrail_name";
|
|
4348
4389
|
};
|
|
4349
4390
|
type BreakdownConfigField = (typeof BreakdownConfigField)[keyof typeof BreakdownConfigField];
|
|
4350
4391
|
|
|
@@ -4364,6 +4405,7 @@ declare const BreakdownConfigPublicField: {
|
|
|
4364
4405
|
readonly Model: "model";
|
|
4365
4406
|
readonly Provider: "provider";
|
|
4366
4407
|
readonly Type: "type";
|
|
4408
|
+
readonly GuardrailName: "guardrail_name";
|
|
4367
4409
|
};
|
|
4368
4410
|
type BreakdownConfigPublicField = (typeof BreakdownConfigPublicField)[keyof typeof BreakdownConfigPublicField];
|
|
4369
4411
|
|
|
@@ -13409,6 +13451,9 @@ interface OpikConfig {
|
|
|
13409
13451
|
holdUntilFlush?: boolean;
|
|
13410
13452
|
promptCacheTtlSeconds?: number;
|
|
13411
13453
|
trackDisable?: boolean;
|
|
13454
|
+
maxPayloadSizeMb?: number;
|
|
13455
|
+
isAttachmentExtractionActive?: boolean;
|
|
13456
|
+
minBase64EmbeddedAttachmentSize?: number;
|
|
13412
13457
|
}
|
|
13413
13458
|
interface ConstructorOpikConfig extends Omit<OpikConfig, "environment"> {
|
|
13414
13459
|
headers?: Record<string, string>;
|
|
@@ -13925,13 +13970,24 @@ declare class AssertionResultsBatchQueue extends BatchQueue<AssertionResultBatch
|
|
|
13925
13970
|
protected deleteEntities(): Promise<void>;
|
|
13926
13971
|
}
|
|
13927
13972
|
|
|
13973
|
+
interface AttachmentUploadConfig {
|
|
13974
|
+
minSizeBytes: number;
|
|
13975
|
+
apiUrl: string;
|
|
13976
|
+
workspaceName: string;
|
|
13977
|
+
apiKey?: string;
|
|
13978
|
+
extraHeaders?: Record<string, string>;
|
|
13979
|
+
}
|
|
13980
|
+
|
|
13928
13981
|
type SpanUpdate = Partial<SavedSpan> & {
|
|
13929
13982
|
traceId: string;
|
|
13930
13983
|
};
|
|
13931
13984
|
declare class SpanBatchQueue extends BatchQueue<SavedSpan> {
|
|
13932
13985
|
private readonly api;
|
|
13933
|
-
|
|
13986
|
+
private readonly maxPayloadSizeMb?;
|
|
13987
|
+
private readonly attachmentUpload?;
|
|
13988
|
+
constructor(api: OpikApiClientTemp, delay?: number, maxPayloadSizeMb?: number | undefined, attachmentUpload?: AttachmentUploadConfig | undefined);
|
|
13934
13989
|
protected getId(entity: SavedSpan): string;
|
|
13990
|
+
private extractAttachments;
|
|
13935
13991
|
protected createEntities(spans: SavedSpan[]): Promise<void>;
|
|
13936
13992
|
protected getEntity(id: string): Promise<SavedSpan>;
|
|
13937
13993
|
protected updateEntity(id: string, updates: SpanUpdate): Promise<void>;
|
|
@@ -13957,8 +14013,11 @@ declare class SpanFeedbackScoresBatchQueue extends BatchQueue<FeedbackScoreBatch
|
|
|
13957
14013
|
|
|
13958
14014
|
declare class TraceBatchQueue extends BatchQueue<SavedTrace> {
|
|
13959
14015
|
private readonly api;
|
|
13960
|
-
|
|
14016
|
+
private readonly maxPayloadSizeMb?;
|
|
14017
|
+
private readonly attachmentUpload?;
|
|
14018
|
+
constructor(api: OpikApiClientTemp, delay?: number, maxPayloadSizeMb?: number | undefined, attachmentUpload?: AttachmentUploadConfig | undefined);
|
|
13961
14019
|
protected getId(entity: SavedTrace): string;
|
|
14020
|
+
private extractAttachments;
|
|
13962
14021
|
protected createEntities(traces: SavedTrace[]): Promise<void>;
|
|
13963
14022
|
protected getEntity(id: string): Promise<SavedTrace>;
|
|
13964
14023
|
protected updateEntity(id: string, updates: Partial<SavedTrace>): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -3744,6 +3744,7 @@ declare const AlertTriggerConfigPublicType: {
|
|
|
3744
3744
|
readonly ThresholdCost: "threshold:cost";
|
|
3745
3745
|
readonly ThresholdLatency: "threshold:latency";
|
|
3746
3746
|
readonly ThresholdErrors: "threshold:errors";
|
|
3747
|
+
readonly FilterGuardrailType: "filter:guardrail_type";
|
|
3747
3748
|
};
|
|
3748
3749
|
type AlertTriggerConfigPublicType = (typeof AlertTriggerConfigPublicType)[keyof typeof AlertTriggerConfigPublicType];
|
|
3749
3750
|
|
|
@@ -3761,6 +3762,7 @@ declare const AlertTriggerConfigWriteType: {
|
|
|
3761
3762
|
readonly ThresholdCost: "threshold:cost";
|
|
3762
3763
|
readonly ThresholdLatency: "threshold:latency";
|
|
3763
3764
|
readonly ThresholdErrors: "threshold:errors";
|
|
3765
|
+
readonly FilterGuardrailType: "filter:guardrail_type";
|
|
3764
3766
|
};
|
|
3765
3767
|
type AlertTriggerConfigWriteType = (typeof AlertTriggerConfigWriteType)[keyof typeof AlertTriggerConfigWriteType];
|
|
3766
3768
|
|
|
@@ -4048,6 +4050,8 @@ declare namespace AutomationRuleEvaluatorObjectObjectPublic {
|
|
|
4048
4050
|
name: string;
|
|
4049
4051
|
samplingRate?: number;
|
|
4050
4052
|
enabled?: boolean;
|
|
4053
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4054
|
+
triggerScope?: AutomationRuleEvaluatorObjectObjectPublicTriggerScope;
|
|
4051
4055
|
createdAt?: Date;
|
|
4052
4056
|
createdBy?: string;
|
|
4053
4057
|
lastUpdatedAt?: Date;
|
|
@@ -4061,6 +4065,14 @@ declare const AutomationRuleEvaluatorObjectObjectPublicAction: {
|
|
|
4061
4065
|
};
|
|
4062
4066
|
type AutomationRuleEvaluatorObjectObjectPublicAction = (typeof AutomationRuleEvaluatorObjectObjectPublicAction)[keyof typeof AutomationRuleEvaluatorObjectObjectPublicAction];
|
|
4063
4067
|
|
|
4068
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4069
|
+
declare const AutomationRuleEvaluatorObjectObjectPublicTriggerScope: {
|
|
4070
|
+
readonly Production: "production";
|
|
4071
|
+
readonly Experiment: "experiment";
|
|
4072
|
+
readonly Both: "both";
|
|
4073
|
+
};
|
|
4074
|
+
type AutomationRuleEvaluatorObjectObjectPublicTriggerScope = (typeof AutomationRuleEvaluatorObjectObjectPublicTriggerScope)[keyof typeof AutomationRuleEvaluatorObjectObjectPublicTriggerScope];
|
|
4075
|
+
|
|
4064
4076
|
interface AutomationRuleEvaluatorPagePublic {
|
|
4065
4077
|
page?: number;
|
|
4066
4078
|
size?: number;
|
|
@@ -4100,6 +4112,8 @@ declare namespace AutomationRuleEvaluatorPublic {
|
|
|
4100
4112
|
name: string;
|
|
4101
4113
|
samplingRate?: number;
|
|
4102
4114
|
enabled?: boolean;
|
|
4115
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4116
|
+
triggerScope?: AutomationRuleEvaluatorPublicTriggerScope;
|
|
4103
4117
|
createdAt?: Date;
|
|
4104
4118
|
createdBy?: string;
|
|
4105
4119
|
lastUpdatedAt?: Date;
|
|
@@ -4113,6 +4127,14 @@ declare const AutomationRuleEvaluatorPublicAction: {
|
|
|
4113
4127
|
};
|
|
4114
4128
|
type AutomationRuleEvaluatorPublicAction = (typeof AutomationRuleEvaluatorPublicAction)[keyof typeof AutomationRuleEvaluatorPublicAction];
|
|
4115
4129
|
|
|
4130
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4131
|
+
declare const AutomationRuleEvaluatorPublicTriggerScope: {
|
|
4132
|
+
readonly Production: "production";
|
|
4133
|
+
readonly Experiment: "experiment";
|
|
4134
|
+
readonly Both: "both";
|
|
4135
|
+
};
|
|
4136
|
+
type AutomationRuleEvaluatorPublicTriggerScope = (typeof AutomationRuleEvaluatorPublicTriggerScope)[keyof typeof AutomationRuleEvaluatorPublicTriggerScope];
|
|
4137
|
+
|
|
4116
4138
|
interface AutomationRuleEvaluatorSpanLlmAsJudgePublic {
|
|
4117
4139
|
filters?: SpanFilterPublic[];
|
|
4118
4140
|
code?: SpanLlmAsJudgeCodePublic;
|
|
@@ -4177,6 +4199,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
|
|
|
4177
4199
|
name: string;
|
|
4178
4200
|
samplingRate?: number;
|
|
4179
4201
|
enabled?: boolean;
|
|
4202
|
+
triggerScope?: AutomationRuleEvaluatorUpdateTriggerScope;
|
|
4180
4203
|
/** Primary project ID (legacy field, maintained for backwards compatibility) */
|
|
4181
4204
|
projectId?: string;
|
|
4182
4205
|
/** Multiple project IDs (new field for multi-project support) */
|
|
@@ -4215,6 +4238,13 @@ interface AutomationRuleEvaluatorUpdateTraceThreadUserDefinedMetricPython {
|
|
|
4215
4238
|
code?: TraceThreadUserDefinedMetricPythonCode;
|
|
4216
4239
|
}
|
|
4217
4240
|
|
|
4241
|
+
declare const AutomationRuleEvaluatorUpdateTriggerScope: {
|
|
4242
|
+
readonly Production: "production";
|
|
4243
|
+
readonly Experiment: "experiment";
|
|
4244
|
+
readonly Both: "both";
|
|
4245
|
+
};
|
|
4246
|
+
type AutomationRuleEvaluatorUpdateTriggerScope = (typeof AutomationRuleEvaluatorUpdateTriggerScope)[keyof typeof AutomationRuleEvaluatorUpdateTriggerScope];
|
|
4247
|
+
|
|
4218
4248
|
interface AutomationRuleEvaluatorUpdateUserDefinedMetricPython {
|
|
4219
4249
|
filters?: TraceFilter[];
|
|
4220
4250
|
code?: UserDefinedMetricPythonCode;
|
|
@@ -4258,6 +4288,8 @@ declare namespace AutomationRuleEvaluatorWrite {
|
|
|
4258
4288
|
name: string;
|
|
4259
4289
|
samplingRate?: number;
|
|
4260
4290
|
enabled?: boolean;
|
|
4291
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4292
|
+
triggerScope?: AutomationRuleEvaluatorWriteTriggerScope;
|
|
4261
4293
|
action: AutomationRuleEvaluatorWriteAction;
|
|
4262
4294
|
}
|
|
4263
4295
|
}
|
|
@@ -4267,6 +4299,14 @@ declare const AutomationRuleEvaluatorWriteAction: {
|
|
|
4267
4299
|
};
|
|
4268
4300
|
type AutomationRuleEvaluatorWriteAction = (typeof AutomationRuleEvaluatorWriteAction)[keyof typeof AutomationRuleEvaluatorWriteAction];
|
|
4269
4301
|
|
|
4302
|
+
/** Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted. */
|
|
4303
|
+
declare const AutomationRuleEvaluatorWriteTriggerScope: {
|
|
4304
|
+
readonly Production: "production";
|
|
4305
|
+
readonly Experiment: "experiment";
|
|
4306
|
+
readonly Both: "both";
|
|
4307
|
+
};
|
|
4308
|
+
type AutomationRuleEvaluatorWriteTriggerScope = (typeof AutomationRuleEvaluatorWriteTriggerScope)[keyof typeof AutomationRuleEvaluatorWriteTriggerScope];
|
|
4309
|
+
|
|
4270
4310
|
interface AvgValueStatPublic {
|
|
4271
4311
|
value?: number;
|
|
4272
4312
|
}
|
|
@@ -4345,6 +4385,7 @@ declare const BreakdownConfigField: {
|
|
|
4345
4385
|
readonly Model: "model";
|
|
4346
4386
|
readonly Provider: "provider";
|
|
4347
4387
|
readonly Type: "type";
|
|
4388
|
+
readonly GuardrailName: "guardrail_name";
|
|
4348
4389
|
};
|
|
4349
4390
|
type BreakdownConfigField = (typeof BreakdownConfigField)[keyof typeof BreakdownConfigField];
|
|
4350
4391
|
|
|
@@ -4364,6 +4405,7 @@ declare const BreakdownConfigPublicField: {
|
|
|
4364
4405
|
readonly Model: "model";
|
|
4365
4406
|
readonly Provider: "provider";
|
|
4366
4407
|
readonly Type: "type";
|
|
4408
|
+
readonly GuardrailName: "guardrail_name";
|
|
4367
4409
|
};
|
|
4368
4410
|
type BreakdownConfigPublicField = (typeof BreakdownConfigPublicField)[keyof typeof BreakdownConfigPublicField];
|
|
4369
4411
|
|
|
@@ -13409,6 +13451,9 @@ interface OpikConfig {
|
|
|
13409
13451
|
holdUntilFlush?: boolean;
|
|
13410
13452
|
promptCacheTtlSeconds?: number;
|
|
13411
13453
|
trackDisable?: boolean;
|
|
13454
|
+
maxPayloadSizeMb?: number;
|
|
13455
|
+
isAttachmentExtractionActive?: boolean;
|
|
13456
|
+
minBase64EmbeddedAttachmentSize?: number;
|
|
13412
13457
|
}
|
|
13413
13458
|
interface ConstructorOpikConfig extends Omit<OpikConfig, "environment"> {
|
|
13414
13459
|
headers?: Record<string, string>;
|
|
@@ -13925,13 +13970,24 @@ declare class AssertionResultsBatchQueue extends BatchQueue<AssertionResultBatch
|
|
|
13925
13970
|
protected deleteEntities(): Promise<void>;
|
|
13926
13971
|
}
|
|
13927
13972
|
|
|
13973
|
+
interface AttachmentUploadConfig {
|
|
13974
|
+
minSizeBytes: number;
|
|
13975
|
+
apiUrl: string;
|
|
13976
|
+
workspaceName: string;
|
|
13977
|
+
apiKey?: string;
|
|
13978
|
+
extraHeaders?: Record<string, string>;
|
|
13979
|
+
}
|
|
13980
|
+
|
|
13928
13981
|
type SpanUpdate = Partial<SavedSpan> & {
|
|
13929
13982
|
traceId: string;
|
|
13930
13983
|
};
|
|
13931
13984
|
declare class SpanBatchQueue extends BatchQueue<SavedSpan> {
|
|
13932
13985
|
private readonly api;
|
|
13933
|
-
|
|
13986
|
+
private readonly maxPayloadSizeMb?;
|
|
13987
|
+
private readonly attachmentUpload?;
|
|
13988
|
+
constructor(api: OpikApiClientTemp, delay?: number, maxPayloadSizeMb?: number | undefined, attachmentUpload?: AttachmentUploadConfig | undefined);
|
|
13934
13989
|
protected getId(entity: SavedSpan): string;
|
|
13990
|
+
private extractAttachments;
|
|
13935
13991
|
protected createEntities(spans: SavedSpan[]): Promise<void>;
|
|
13936
13992
|
protected getEntity(id: string): Promise<SavedSpan>;
|
|
13937
13993
|
protected updateEntity(id: string, updates: SpanUpdate): Promise<void>;
|
|
@@ -13957,8 +14013,11 @@ declare class SpanFeedbackScoresBatchQueue extends BatchQueue<FeedbackScoreBatch
|
|
|
13957
14013
|
|
|
13958
14014
|
declare class TraceBatchQueue extends BatchQueue<SavedTrace> {
|
|
13959
14015
|
private readonly api;
|
|
13960
|
-
|
|
14016
|
+
private readonly maxPayloadSizeMb?;
|
|
14017
|
+
private readonly attachmentUpload?;
|
|
14018
|
+
constructor(api: OpikApiClientTemp, delay?: number, maxPayloadSizeMb?: number | undefined, attachmentUpload?: AttachmentUploadConfig | undefined);
|
|
13961
14019
|
protected getId(entity: SavedTrace): string;
|
|
14020
|
+
private extractAttachments;
|
|
13962
14021
|
protected createEntities(traces: SavedTrace[]): Promise<void>;
|
|
13963
14022
|
protected getEntity(id: string): Promise<SavedTrace>;
|
|
13964
14023
|
protected updateEntity(id: string, updates: Partial<SavedTrace>): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-KMATOW3N.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-KMATOW3N.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-KMATOW3N.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-KMATOW3N.js';Ca();
|