opik 2.0.72 → 2.0.73
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-JV4VZZV2.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +1 -1
- package/dist/{suite-VTS4HQO5.js → suite-KMXDB4SN.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2Y4H3VQV.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -390,6 +390,7 @@ interface AgentInsightsIssueUpdate {
|
|
|
390
390
|
* reportDay: "2023-01-15",
|
|
391
391
|
* issues: [{
|
|
392
392
|
* name: "name",
|
|
393
|
+
* severity: "critical",
|
|
393
394
|
* count: 1000000,
|
|
394
395
|
* totalCount: 1000000,
|
|
395
396
|
* usersImpacted: 1000000,
|
|
@@ -414,6 +415,7 @@ interface FindAgentInsightsIssuesRequest {
|
|
|
414
415
|
fromDate?: string;
|
|
415
416
|
toDate?: string;
|
|
416
417
|
status?: FindAgentInsightsIssuesRequestStatus;
|
|
418
|
+
severity?: FindAgentInsightsIssuesRequestSeverity;
|
|
417
419
|
sorting?: string;
|
|
418
420
|
page?: number;
|
|
419
421
|
size?: number;
|
|
@@ -438,6 +440,14 @@ declare const AgentInsightsIssueUpdateStatus: {
|
|
|
438
440
|
};
|
|
439
441
|
type AgentInsightsIssueUpdateStatus = (typeof AgentInsightsIssueUpdateStatus)[keyof typeof AgentInsightsIssueUpdateStatus];
|
|
440
442
|
|
|
443
|
+
declare const FindAgentInsightsIssuesRequestSeverity: {
|
|
444
|
+
readonly Critical: "critical";
|
|
445
|
+
readonly High: "high";
|
|
446
|
+
readonly Medium: "medium";
|
|
447
|
+
readonly Low: "low";
|
|
448
|
+
};
|
|
449
|
+
type FindAgentInsightsIssuesRequestSeverity = (typeof FindAgentInsightsIssuesRequestSeverity)[keyof typeof FindAgentInsightsIssuesRequestSeverity];
|
|
450
|
+
|
|
441
451
|
declare const FindAgentInsightsIssuesRequestStatus: {
|
|
442
452
|
readonly Open: "open";
|
|
443
453
|
readonly Resolved: "resolved";
|
|
@@ -3505,6 +3515,7 @@ interface AgentInsightsIssue {
|
|
|
3505
3515
|
cause?: string;
|
|
3506
3516
|
suggestedFix?: string;
|
|
3507
3517
|
status?: AgentInsightsIssueStatus;
|
|
3518
|
+
severity?: AgentInsightsIssueSeverity;
|
|
3508
3519
|
tracesQuery?: string;
|
|
3509
3520
|
/** SUM(count) over the requested window */
|
|
3510
3521
|
totalOccurrences?: number;
|
|
@@ -3545,6 +3556,14 @@ interface AgentInsightsIssuePage {
|
|
|
3545
3556
|
content?: AgentInsightsIssue[];
|
|
3546
3557
|
}
|
|
3547
3558
|
|
|
3559
|
+
declare const AgentInsightsIssueSeverity: {
|
|
3560
|
+
readonly Critical: "critical";
|
|
3561
|
+
readonly High: "high";
|
|
3562
|
+
readonly Medium: "medium";
|
|
3563
|
+
readonly Low: "low";
|
|
3564
|
+
};
|
|
3565
|
+
type AgentInsightsIssueSeverity = (typeof AgentInsightsIssueSeverity)[keyof typeof AgentInsightsIssueSeverity];
|
|
3566
|
+
|
|
3548
3567
|
declare const AgentInsightsIssueStatus: {
|
|
3549
3568
|
readonly Open: "open";
|
|
3550
3569
|
readonly Resolved: "resolved";
|
|
@@ -3559,6 +3578,7 @@ interface AgentInsightsIssueWithDetails {
|
|
|
3559
3578
|
cause?: string;
|
|
3560
3579
|
suggestedFix?: string;
|
|
3561
3580
|
status?: AgentInsightsIssueWithDetailsStatus;
|
|
3581
|
+
severity?: AgentInsightsIssueWithDetailsSeverity;
|
|
3562
3582
|
tracesQuery?: string;
|
|
3563
3583
|
createdBy?: string;
|
|
3564
3584
|
createdAt?: Date;
|
|
@@ -3568,6 +3588,14 @@ interface AgentInsightsIssueWithDetails {
|
|
|
3568
3588
|
details?: AgentInsightsIssueDetail[];
|
|
3569
3589
|
}
|
|
3570
3590
|
|
|
3591
|
+
declare const AgentInsightsIssueWithDetailsSeverity: {
|
|
3592
|
+
readonly Critical: "critical";
|
|
3593
|
+
readonly High: "high";
|
|
3594
|
+
readonly Medium: "medium";
|
|
3595
|
+
readonly Low: "low";
|
|
3596
|
+
};
|
|
3597
|
+
type AgentInsightsIssueWithDetailsSeverity = (typeof AgentInsightsIssueWithDetailsSeverity)[keyof typeof AgentInsightsIssueWithDetailsSeverity];
|
|
3598
|
+
|
|
3571
3599
|
declare const AgentInsightsIssueWithDetailsStatus: {
|
|
3572
3600
|
readonly Open: "open";
|
|
3573
3601
|
readonly Resolved: "resolved";
|
|
@@ -6807,6 +6835,7 @@ interface ReportedIssue {
|
|
|
6807
6835
|
cause?: string;
|
|
6808
6836
|
suggestedFix?: string;
|
|
6809
6837
|
tracesQuery?: string;
|
|
6838
|
+
severity: ReportedIssueSeverity;
|
|
6810
6839
|
count: number;
|
|
6811
6840
|
totalCount: number;
|
|
6812
6841
|
usersImpacted: number;
|
|
@@ -6814,6 +6843,14 @@ interface ReportedIssue {
|
|
|
6814
6843
|
metadata?: JsonNode;
|
|
6815
6844
|
}
|
|
6816
6845
|
|
|
6846
|
+
declare const ReportedIssueSeverity: {
|
|
6847
|
+
readonly Critical: "critical";
|
|
6848
|
+
readonly High: "high";
|
|
6849
|
+
readonly Medium: "medium";
|
|
6850
|
+
readonly Low: "low";
|
|
6851
|
+
};
|
|
6852
|
+
type ReportedIssueSeverity = (typeof ReportedIssueSeverity)[keyof typeof ReportedIssueSeverity];
|
|
6853
|
+
|
|
6817
6854
|
interface ReportPreference {
|
|
6818
6855
|
projectId?: string;
|
|
6819
6856
|
enabled?: boolean;
|
|
@@ -6909,7 +6946,6 @@ interface ServiceTogglesConfig {
|
|
|
6909
6946
|
welcomeWizardEnabled: boolean;
|
|
6910
6947
|
exportEnabled: boolean;
|
|
6911
6948
|
optimizationStudioEnabled: boolean;
|
|
6912
|
-
costIntelligenceEnabled: boolean;
|
|
6913
6949
|
datasetVersioningEnabled: boolean;
|
|
6914
6950
|
datasetExportEnabled: boolean;
|
|
6915
6951
|
demoDataEnabled: boolean;
|
|
@@ -8459,6 +8495,7 @@ declare class AgentInsightsClient {
|
|
|
8459
8495
|
* reportDay: "2023-01-15",
|
|
8460
8496
|
* issues: [{
|
|
8461
8497
|
* name: "name",
|
|
8498
|
+
* severity: "critical",
|
|
8462
8499
|
* count: 1000000,
|
|
8463
8500
|
* totalCount: 1000000,
|
|
8464
8501
|
* usersImpacted: 1000000,
|
package/dist/index.d.ts
CHANGED
|
@@ -390,6 +390,7 @@ interface AgentInsightsIssueUpdate {
|
|
|
390
390
|
* reportDay: "2023-01-15",
|
|
391
391
|
* issues: [{
|
|
392
392
|
* name: "name",
|
|
393
|
+
* severity: "critical",
|
|
393
394
|
* count: 1000000,
|
|
394
395
|
* totalCount: 1000000,
|
|
395
396
|
* usersImpacted: 1000000,
|
|
@@ -414,6 +415,7 @@ interface FindAgentInsightsIssuesRequest {
|
|
|
414
415
|
fromDate?: string;
|
|
415
416
|
toDate?: string;
|
|
416
417
|
status?: FindAgentInsightsIssuesRequestStatus;
|
|
418
|
+
severity?: FindAgentInsightsIssuesRequestSeverity;
|
|
417
419
|
sorting?: string;
|
|
418
420
|
page?: number;
|
|
419
421
|
size?: number;
|
|
@@ -438,6 +440,14 @@ declare const AgentInsightsIssueUpdateStatus: {
|
|
|
438
440
|
};
|
|
439
441
|
type AgentInsightsIssueUpdateStatus = (typeof AgentInsightsIssueUpdateStatus)[keyof typeof AgentInsightsIssueUpdateStatus];
|
|
440
442
|
|
|
443
|
+
declare const FindAgentInsightsIssuesRequestSeverity: {
|
|
444
|
+
readonly Critical: "critical";
|
|
445
|
+
readonly High: "high";
|
|
446
|
+
readonly Medium: "medium";
|
|
447
|
+
readonly Low: "low";
|
|
448
|
+
};
|
|
449
|
+
type FindAgentInsightsIssuesRequestSeverity = (typeof FindAgentInsightsIssuesRequestSeverity)[keyof typeof FindAgentInsightsIssuesRequestSeverity];
|
|
450
|
+
|
|
441
451
|
declare const FindAgentInsightsIssuesRequestStatus: {
|
|
442
452
|
readonly Open: "open";
|
|
443
453
|
readonly Resolved: "resolved";
|
|
@@ -3505,6 +3515,7 @@ interface AgentInsightsIssue {
|
|
|
3505
3515
|
cause?: string;
|
|
3506
3516
|
suggestedFix?: string;
|
|
3507
3517
|
status?: AgentInsightsIssueStatus;
|
|
3518
|
+
severity?: AgentInsightsIssueSeverity;
|
|
3508
3519
|
tracesQuery?: string;
|
|
3509
3520
|
/** SUM(count) over the requested window */
|
|
3510
3521
|
totalOccurrences?: number;
|
|
@@ -3545,6 +3556,14 @@ interface AgentInsightsIssuePage {
|
|
|
3545
3556
|
content?: AgentInsightsIssue[];
|
|
3546
3557
|
}
|
|
3547
3558
|
|
|
3559
|
+
declare const AgentInsightsIssueSeverity: {
|
|
3560
|
+
readonly Critical: "critical";
|
|
3561
|
+
readonly High: "high";
|
|
3562
|
+
readonly Medium: "medium";
|
|
3563
|
+
readonly Low: "low";
|
|
3564
|
+
};
|
|
3565
|
+
type AgentInsightsIssueSeverity = (typeof AgentInsightsIssueSeverity)[keyof typeof AgentInsightsIssueSeverity];
|
|
3566
|
+
|
|
3548
3567
|
declare const AgentInsightsIssueStatus: {
|
|
3549
3568
|
readonly Open: "open";
|
|
3550
3569
|
readonly Resolved: "resolved";
|
|
@@ -3559,6 +3578,7 @@ interface AgentInsightsIssueWithDetails {
|
|
|
3559
3578
|
cause?: string;
|
|
3560
3579
|
suggestedFix?: string;
|
|
3561
3580
|
status?: AgentInsightsIssueWithDetailsStatus;
|
|
3581
|
+
severity?: AgentInsightsIssueWithDetailsSeverity;
|
|
3562
3582
|
tracesQuery?: string;
|
|
3563
3583
|
createdBy?: string;
|
|
3564
3584
|
createdAt?: Date;
|
|
@@ -3568,6 +3588,14 @@ interface AgentInsightsIssueWithDetails {
|
|
|
3568
3588
|
details?: AgentInsightsIssueDetail[];
|
|
3569
3589
|
}
|
|
3570
3590
|
|
|
3591
|
+
declare const AgentInsightsIssueWithDetailsSeverity: {
|
|
3592
|
+
readonly Critical: "critical";
|
|
3593
|
+
readonly High: "high";
|
|
3594
|
+
readonly Medium: "medium";
|
|
3595
|
+
readonly Low: "low";
|
|
3596
|
+
};
|
|
3597
|
+
type AgentInsightsIssueWithDetailsSeverity = (typeof AgentInsightsIssueWithDetailsSeverity)[keyof typeof AgentInsightsIssueWithDetailsSeverity];
|
|
3598
|
+
|
|
3571
3599
|
declare const AgentInsightsIssueWithDetailsStatus: {
|
|
3572
3600
|
readonly Open: "open";
|
|
3573
3601
|
readonly Resolved: "resolved";
|
|
@@ -6807,6 +6835,7 @@ interface ReportedIssue {
|
|
|
6807
6835
|
cause?: string;
|
|
6808
6836
|
suggestedFix?: string;
|
|
6809
6837
|
tracesQuery?: string;
|
|
6838
|
+
severity: ReportedIssueSeverity;
|
|
6810
6839
|
count: number;
|
|
6811
6840
|
totalCount: number;
|
|
6812
6841
|
usersImpacted: number;
|
|
@@ -6814,6 +6843,14 @@ interface ReportedIssue {
|
|
|
6814
6843
|
metadata?: JsonNode;
|
|
6815
6844
|
}
|
|
6816
6845
|
|
|
6846
|
+
declare const ReportedIssueSeverity: {
|
|
6847
|
+
readonly Critical: "critical";
|
|
6848
|
+
readonly High: "high";
|
|
6849
|
+
readonly Medium: "medium";
|
|
6850
|
+
readonly Low: "low";
|
|
6851
|
+
};
|
|
6852
|
+
type ReportedIssueSeverity = (typeof ReportedIssueSeverity)[keyof typeof ReportedIssueSeverity];
|
|
6853
|
+
|
|
6817
6854
|
interface ReportPreference {
|
|
6818
6855
|
projectId?: string;
|
|
6819
6856
|
enabled?: boolean;
|
|
@@ -6909,7 +6946,6 @@ interface ServiceTogglesConfig {
|
|
|
6909
6946
|
welcomeWizardEnabled: boolean;
|
|
6910
6947
|
exportEnabled: boolean;
|
|
6911
6948
|
optimizationStudioEnabled: boolean;
|
|
6912
|
-
costIntelligenceEnabled: boolean;
|
|
6913
6949
|
datasetVersioningEnabled: boolean;
|
|
6914
6950
|
datasetExportEnabled: boolean;
|
|
6915
6951
|
demoDataEnabled: boolean;
|
|
@@ -8459,6 +8495,7 @@ declare class AgentInsightsClient {
|
|
|
8459
8495
|
* reportDay: "2023-01-15",
|
|
8460
8496
|
* issues: [{
|
|
8461
8497
|
* name: "name",
|
|
8498
|
+
* severity: "critical",
|
|
8462
8499
|
* count: 1000000,
|
|
8463
8500
|
* totalCount: 1000000,
|
|
8464
8501
|
* usersImpacted: 1000000,
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-JV4VZZV2.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-JV4VZZV2.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-JV4VZZV2.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-JV4VZZV2.js';Ca();
|