opik 2.0.76 → 2.1.0
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-SX7GKKBP.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +8 -36
- package/dist/index.d.ts +8 -36
- package/dist/index.js +1 -1
- package/dist/{suite-KMXDB4SN.js → suite-UZCSOVKO.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-JV4VZZV2.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -3607,6 +3607,7 @@ interface AgentInsightsJob {
|
|
|
3607
3607
|
id?: string;
|
|
3608
3608
|
projectId?: string;
|
|
3609
3609
|
status?: AgentInsightsJobStatus;
|
|
3610
|
+
lastScanAt?: Date;
|
|
3610
3611
|
createdAt?: Date;
|
|
3611
3612
|
createdBy?: string;
|
|
3612
3613
|
lastUpdatedAt?: Date;
|
|
@@ -5794,22 +5795,14 @@ interface ImageUrlWrite {
|
|
|
5794
5795
|
}
|
|
5795
5796
|
|
|
5796
5797
|
interface Item {
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
relatedLaneKey?: string;
|
|
5798
|
+
label?: string;
|
|
5799
|
+
totalTokens?: number;
|
|
5800
|
+
definitionTokens?: number;
|
|
5801
|
+
usageTokens?: number;
|
|
5802
|
+
byModel?: ModelTiers[];
|
|
5803
|
+
count?: number;
|
|
5804
5804
|
}
|
|
5805
5805
|
|
|
5806
|
-
declare const ItemImpact: {
|
|
5807
|
-
readonly High: "high";
|
|
5808
|
-
readonly Medium: "medium";
|
|
5809
|
-
readonly Low: "low";
|
|
5810
|
-
};
|
|
5811
|
-
type ItemImpact = (typeof ItemImpact)[keyof typeof ItemImpact];
|
|
5812
|
-
|
|
5813
5806
|
interface ItemLockInfo {
|
|
5814
5807
|
activeLocks?: number;
|
|
5815
5808
|
lockedBy?: string[];
|
|
@@ -6945,7 +6938,7 @@ interface ServiceTogglesConfig {
|
|
|
6945
6938
|
alertsEnabled: boolean;
|
|
6946
6939
|
welcomeWizardEnabled: boolean;
|
|
6947
6940
|
exportEnabled: boolean;
|
|
6948
|
-
|
|
6941
|
+
costIntelligenceEnabled: boolean;
|
|
6949
6942
|
datasetVersioningEnabled: boolean;
|
|
6950
6943
|
datasetExportEnabled: boolean;
|
|
6951
6944
|
demoDataEnabled: boolean;
|
|
@@ -7365,11 +7358,6 @@ interface SpendMetricRequest {
|
|
|
7365
7358
|
projectProvided?: boolean;
|
|
7366
7359
|
}
|
|
7367
7360
|
|
|
7368
|
-
interface SpendRecommendationsResponse {
|
|
7369
|
-
totalSavingsTokens?: number;
|
|
7370
|
-
items?: Item[];
|
|
7371
|
-
}
|
|
7372
|
-
|
|
7373
7361
|
interface SpendSummaryResponse {
|
|
7374
7362
|
results?: Result[];
|
|
7375
7363
|
spendCurrent?: ModelTiers[];
|
|
@@ -8662,22 +8650,6 @@ declare class AiSpendClient {
|
|
|
8662
8650
|
*/
|
|
8663
8651
|
getSpendLaneBreakdown(laneKey: string, request: GetSpendLaneBreakdownRequest, requestOptions?: AiSpendClient.RequestOptions): HttpResponsePromise<SpendBreakdownResponse>;
|
|
8664
8652
|
private __getSpendLaneBreakdown;
|
|
8665
|
-
/**
|
|
8666
|
-
* Get coding-agent cost-saving recommendations
|
|
8667
|
-
*
|
|
8668
|
-
* @param {OpikApi.SpendMetricRequest} request
|
|
8669
|
-
* @param {AiSpendClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
8670
|
-
*
|
|
8671
|
-
* @throws {@link OpikApi.BadRequestError}
|
|
8672
|
-
*
|
|
8673
|
-
* @example
|
|
8674
|
-
* await client.aiSpend.getSpendRecommendations({
|
|
8675
|
-
* intervalStart: new Date("2024-01-15T09:30:00.000Z"),
|
|
8676
|
-
* intervalEnd: new Date("2024-01-15T09:30:00.000Z")
|
|
8677
|
-
* })
|
|
8678
|
-
*/
|
|
8679
|
-
getSpendRecommendations(request: SpendMetricRequest, requestOptions?: AiSpendClient.RequestOptions): HttpResponsePromise<SpendRecommendationsResponse>;
|
|
8680
|
-
private __getSpendRecommendations;
|
|
8681
8653
|
/**
|
|
8682
8654
|
* Get coding-agent spend KPI summary
|
|
8683
8655
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -3607,6 +3607,7 @@ interface AgentInsightsJob {
|
|
|
3607
3607
|
id?: string;
|
|
3608
3608
|
projectId?: string;
|
|
3609
3609
|
status?: AgentInsightsJobStatus;
|
|
3610
|
+
lastScanAt?: Date;
|
|
3610
3611
|
createdAt?: Date;
|
|
3611
3612
|
createdBy?: string;
|
|
3612
3613
|
lastUpdatedAt?: Date;
|
|
@@ -5794,22 +5795,14 @@ interface ImageUrlWrite {
|
|
|
5794
5795
|
}
|
|
5795
5796
|
|
|
5796
5797
|
interface Item {
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
relatedLaneKey?: string;
|
|
5798
|
+
label?: string;
|
|
5799
|
+
totalTokens?: number;
|
|
5800
|
+
definitionTokens?: number;
|
|
5801
|
+
usageTokens?: number;
|
|
5802
|
+
byModel?: ModelTiers[];
|
|
5803
|
+
count?: number;
|
|
5804
5804
|
}
|
|
5805
5805
|
|
|
5806
|
-
declare const ItemImpact: {
|
|
5807
|
-
readonly High: "high";
|
|
5808
|
-
readonly Medium: "medium";
|
|
5809
|
-
readonly Low: "low";
|
|
5810
|
-
};
|
|
5811
|
-
type ItemImpact = (typeof ItemImpact)[keyof typeof ItemImpact];
|
|
5812
|
-
|
|
5813
5806
|
interface ItemLockInfo {
|
|
5814
5807
|
activeLocks?: number;
|
|
5815
5808
|
lockedBy?: string[];
|
|
@@ -6945,7 +6938,7 @@ interface ServiceTogglesConfig {
|
|
|
6945
6938
|
alertsEnabled: boolean;
|
|
6946
6939
|
welcomeWizardEnabled: boolean;
|
|
6947
6940
|
exportEnabled: boolean;
|
|
6948
|
-
|
|
6941
|
+
costIntelligenceEnabled: boolean;
|
|
6949
6942
|
datasetVersioningEnabled: boolean;
|
|
6950
6943
|
datasetExportEnabled: boolean;
|
|
6951
6944
|
demoDataEnabled: boolean;
|
|
@@ -7365,11 +7358,6 @@ interface SpendMetricRequest {
|
|
|
7365
7358
|
projectProvided?: boolean;
|
|
7366
7359
|
}
|
|
7367
7360
|
|
|
7368
|
-
interface SpendRecommendationsResponse {
|
|
7369
|
-
totalSavingsTokens?: number;
|
|
7370
|
-
items?: Item[];
|
|
7371
|
-
}
|
|
7372
|
-
|
|
7373
7361
|
interface SpendSummaryResponse {
|
|
7374
7362
|
results?: Result[];
|
|
7375
7363
|
spendCurrent?: ModelTiers[];
|
|
@@ -8662,22 +8650,6 @@ declare class AiSpendClient {
|
|
|
8662
8650
|
*/
|
|
8663
8651
|
getSpendLaneBreakdown(laneKey: string, request: GetSpendLaneBreakdownRequest, requestOptions?: AiSpendClient.RequestOptions): HttpResponsePromise<SpendBreakdownResponse>;
|
|
8664
8652
|
private __getSpendLaneBreakdown;
|
|
8665
|
-
/**
|
|
8666
|
-
* Get coding-agent cost-saving recommendations
|
|
8667
|
-
*
|
|
8668
|
-
* @param {OpikApi.SpendMetricRequest} request
|
|
8669
|
-
* @param {AiSpendClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
8670
|
-
*
|
|
8671
|
-
* @throws {@link OpikApi.BadRequestError}
|
|
8672
|
-
*
|
|
8673
|
-
* @example
|
|
8674
|
-
* await client.aiSpend.getSpendRecommendations({
|
|
8675
|
-
* intervalStart: new Date("2024-01-15T09:30:00.000Z"),
|
|
8676
|
-
* intervalEnd: new Date("2024-01-15T09:30:00.000Z")
|
|
8677
|
-
* })
|
|
8678
|
-
*/
|
|
8679
|
-
getSpendRecommendations(request: SpendMetricRequest, requestOptions?: AiSpendClient.RequestOptions): HttpResponsePromise<SpendRecommendationsResponse>;
|
|
8680
|
-
private __getSpendRecommendations;
|
|
8681
8653
|
/**
|
|
8682
8654
|
* Get coding-agent spend KPI summary
|
|
8683
8655
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-SX7GKKBP.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-SX7GKKBP.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-SX7GKKBP.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-SX7GKKBP.js';Ca();
|