opik 2.0.13 → 2.0.15
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-C3YEVQFH.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +1 -1
- package/dist/{suite-KN54VYCM.js → suite-MYJYLBYX.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-WR2LKNCI.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -2933,7 +2933,7 @@ interface Agent {
|
|
|
2933
2933
|
language?: string;
|
|
2934
2934
|
executable?: string;
|
|
2935
2935
|
sourceFile?: string;
|
|
2936
|
-
params?: Param
|
|
2936
|
+
params?: Param[];
|
|
2937
2937
|
timeout?: number;
|
|
2938
2938
|
}
|
|
2939
2939
|
|
|
@@ -4525,6 +4525,7 @@ interface ExperimentItem {
|
|
|
4525
4525
|
lastUpdatedBy?: string;
|
|
4526
4526
|
traceVisibilityMode?: ExperimentItemTraceVisibilityMode;
|
|
4527
4527
|
description?: string;
|
|
4528
|
+
executionPolicy?: ExecutionPolicy$1;
|
|
4528
4529
|
assertionResults?: AssertionResult[];
|
|
4529
4530
|
status?: ExperimentItemStatus;
|
|
4530
4531
|
}
|
|
@@ -4556,6 +4557,7 @@ interface ExperimentItemCompare {
|
|
|
4556
4557
|
lastUpdatedBy?: string;
|
|
4557
4558
|
traceVisibilityMode?: ExperimentItemCompareTraceVisibilityMode;
|
|
4558
4559
|
description?: string;
|
|
4560
|
+
executionPolicy?: ExecutionPolicyCompare;
|
|
4559
4561
|
assertionResults?: AssertionResultCompare[];
|
|
4560
4562
|
status?: ExperimentItemCompareStatus;
|
|
4561
4563
|
}
|
|
@@ -5618,11 +5620,18 @@ interface PageColumns {
|
|
|
5618
5620
|
columns?: Column[];
|
|
5619
5621
|
}
|
|
5620
5622
|
|
|
5621
|
-
interface Param
|
|
5623
|
+
interface Param {
|
|
5622
5624
|
name: string;
|
|
5623
5625
|
type: string;
|
|
5626
|
+
presence?: ParamPresence;
|
|
5624
5627
|
}
|
|
5625
5628
|
|
|
5629
|
+
declare const ParamPresence: {
|
|
5630
|
+
readonly Required: "required";
|
|
5631
|
+
readonly Optional: "optional";
|
|
5632
|
+
};
|
|
5633
|
+
type ParamPresence = (typeof ParamPresence)[keyof typeof ParamPresence];
|
|
5634
|
+
|
|
5626
5635
|
interface PercentageValueStatPublic {
|
|
5627
5636
|
value?: PercentageValuesPublic;
|
|
5628
5637
|
}
|
|
@@ -14130,10 +14139,6 @@ declare class OpikClient {
|
|
|
14130
14139
|
}) => Promise<void>;
|
|
14131
14140
|
}
|
|
14132
14141
|
|
|
14133
|
-
interface Param {
|
|
14134
|
-
name: string;
|
|
14135
|
-
type: string;
|
|
14136
|
-
}
|
|
14137
14142
|
interface RegistryEntry {
|
|
14138
14143
|
func: (...args: any[]) => any;
|
|
14139
14144
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2933,7 +2933,7 @@ interface Agent {
|
|
|
2933
2933
|
language?: string;
|
|
2934
2934
|
executable?: string;
|
|
2935
2935
|
sourceFile?: string;
|
|
2936
|
-
params?: Param
|
|
2936
|
+
params?: Param[];
|
|
2937
2937
|
timeout?: number;
|
|
2938
2938
|
}
|
|
2939
2939
|
|
|
@@ -4525,6 +4525,7 @@ interface ExperimentItem {
|
|
|
4525
4525
|
lastUpdatedBy?: string;
|
|
4526
4526
|
traceVisibilityMode?: ExperimentItemTraceVisibilityMode;
|
|
4527
4527
|
description?: string;
|
|
4528
|
+
executionPolicy?: ExecutionPolicy$1;
|
|
4528
4529
|
assertionResults?: AssertionResult[];
|
|
4529
4530
|
status?: ExperimentItemStatus;
|
|
4530
4531
|
}
|
|
@@ -4556,6 +4557,7 @@ interface ExperimentItemCompare {
|
|
|
4556
4557
|
lastUpdatedBy?: string;
|
|
4557
4558
|
traceVisibilityMode?: ExperimentItemCompareTraceVisibilityMode;
|
|
4558
4559
|
description?: string;
|
|
4560
|
+
executionPolicy?: ExecutionPolicyCompare;
|
|
4559
4561
|
assertionResults?: AssertionResultCompare[];
|
|
4560
4562
|
status?: ExperimentItemCompareStatus;
|
|
4561
4563
|
}
|
|
@@ -5618,11 +5620,18 @@ interface PageColumns {
|
|
|
5618
5620
|
columns?: Column[];
|
|
5619
5621
|
}
|
|
5620
5622
|
|
|
5621
|
-
interface Param
|
|
5623
|
+
interface Param {
|
|
5622
5624
|
name: string;
|
|
5623
5625
|
type: string;
|
|
5626
|
+
presence?: ParamPresence;
|
|
5624
5627
|
}
|
|
5625
5628
|
|
|
5629
|
+
declare const ParamPresence: {
|
|
5630
|
+
readonly Required: "required";
|
|
5631
|
+
readonly Optional: "optional";
|
|
5632
|
+
};
|
|
5633
|
+
type ParamPresence = (typeof ParamPresence)[keyof typeof ParamPresence];
|
|
5634
|
+
|
|
5626
5635
|
interface PercentageValueStatPublic {
|
|
5627
5636
|
value?: PercentageValuesPublic;
|
|
5628
5637
|
}
|
|
@@ -14130,10 +14139,6 @@ declare class OpikClient {
|
|
|
14130
14139
|
}) => Promise<void>;
|
|
14131
14140
|
}
|
|
14132
14141
|
|
|
14133
|
-
interface Param {
|
|
14134
|
-
name: string;
|
|
14135
|
-
type: string;
|
|
14136
|
-
}
|
|
14137
14142
|
interface RegistryEntry {
|
|
14138
14143
|
func: (...args: any[]) => any;
|
|
14139
14144
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ba}from'./chunk-
|
|
1
|
+
import {Ba}from'./chunk-C3YEVQFH.js';export{ra as AgentTaskCompletionJudge,qa as AgentToolCorrectnessJudge,ea as AnswerRelevance,aa as BaseLLMJudgeMetric,B as BaseMetric,C as BaseSuiteEvaluator,p as ChatPrompt,ta as ComplianceRiskJudge,i as ConfigMismatchError,h as ConfigNotFoundError,Z as Contains,y as DEFAULT_EXECUTION_POLICY,j as Dataset,f as DatasetVersion,g as DatasetVersionNotFoundError,la as DemographicBiasJudge,ja as DialogueHelpfulnessJudge,Y as ExactMatch,fa as GEval,ga as GEvalPreset,na as GenderBiasJudge,da as Hallucination,$ as IsJson,P as LLMJudge,G as ModelConfigurationError,E as ModelError,F as ModelGenerationError,ba as Moderation,za as Opik,D as OpikBaseModel,q as OpikQueryLanguage,d as OpikSpanType,ma as PoliticalBiasJudge,o as Prompt,k as PromptType,sa as PromptUncertaintyJudge,ka as QARelevanceJudge,_ as RegexMatch,pa as RegionalBiasJudge,oa as ReligiousBiasJudge,O as ResponseSchema,M as SYSTEM_PROMPT,ia as SummarizationCoherenceJudge,ha as SummarizationConsistencyJudge,xa as TestSuite,z as TestSuiteResult,s as ThreadsAnnotationQueue,r as TracesAnnotationQueue,N as USER_PROMPT_TEMPLATE,ca as Usefulness,I as VercelAIChatModel,v as activateRunner,t as agentConfigContext,A as buildSuiteResult,J as createModel,K as createModelFromInstance,R as deserializeEvaluators,H as detectProvider,c as disableLogger,W as evaluate,X as evaluatePrompt,U as evaluateTestSuite,u as flushAll,e as generateId,l as getGlobalClient,w as getTrackContext,a as logger,n as resetGlobalClient,ua as resolveEvaluators,S as resolveExecutionPolicy,T as resolveItemExecutionPolicy,L as resolveModel,V as runTests,Q as serializeEvaluators,m as setGlobalClient,b as setLoggerLevel,x as track,va as validateEvaluators,wa as validateExecutionPolicy,Aa as z}from'./chunk-C3YEVQFH.js';Ba();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {ya}from'./chunk-
|
|
1
|
+
import {ya}from'./chunk-C3YEVQFH.js';export{y as DEFAULT_EXECUTION_POLICY,xa as TestSuite,z as TestSuiteResult,A as buildSuiteResult,R as deserializeEvaluators,U as evaluateTestSuite,S as resolveExecutionPolicy,T as resolveItemExecutionPolicy,V as runTests,Q as serializeEvaluators}from'./chunk-C3YEVQFH.js';ya();
|