opik 2.2.6 → 2.2.8

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/index.d.cts CHANGED
@@ -4523,6 +4523,9 @@ interface Check {
4523
4523
  declare const CheckName: {
4524
4524
  readonly Topic: "TOPIC";
4525
4525
  readonly Pii: "PII";
4526
+ readonly LlmJudge: "LLM_JUDGE";
4527
+ readonly PromptInjection: "PROMPT_INJECTION";
4528
+ readonly CustomClassifier: "CUSTOM_CLASSIFIER";
4526
4529
  };
4527
4530
  type CheckName = (typeof CheckName)[keyof typeof CheckName];
4528
4531
 
@@ -4534,6 +4537,9 @@ interface CheckPublic {
4534
4537
  declare const CheckPublicName: {
4535
4538
  readonly Topic: "TOPIC";
4536
4539
  readonly Pii: "PII";
4540
+ readonly LlmJudge: "LLM_JUDGE";
4541
+ readonly PromptInjection: "PROMPT_INJECTION";
4542
+ readonly CustomClassifier: "CUSTOM_CLASSIFIER";
4537
4543
  };
4538
4544
  type CheckPublicName = (typeof CheckPublicName)[keyof typeof CheckPublicName];
4539
4545
 
@@ -5892,6 +5898,9 @@ interface GuardrailWrite {
5892
5898
  declare const GuardrailWriteName: {
5893
5899
  readonly Topic: "TOPIC";
5894
5900
  readonly Pii: "PII";
5901
+ readonly LlmJudge: "LLM_JUDGE";
5902
+ readonly PromptInjection: "PROMPT_INJECTION";
5903
+ readonly CustomClassifier: "CUSTOM_CLASSIFIER";
5895
5904
  };
5896
5905
  type GuardrailWriteName = (typeof GuardrailWriteName)[keyof typeof GuardrailWriteName];
5897
5906
 
@@ -7079,7 +7088,6 @@ interface ServiceTogglesConfig {
7079
7088
  ollieEnabled: boolean;
7080
7089
  projectHomepageEnabled: boolean;
7081
7090
  agenticToolsEnabled: boolean;
7082
- agentInsightsEnabled: boolean;
7083
7091
  onlineScoringTracingEnabled: boolean;
7084
7092
  v2WorkspaceAllowlistIds: string[];
7085
7093
  v1WorkspaceAllowlistIds: string[];
@@ -9914,6 +9922,7 @@ declare class DatasetsClient {
9914
9922
  * @param {DatasetsClient.RequestOptions} requestOptions - Request-specific configuration.
9915
9923
  *
9916
9924
  * @throws {@link OpikApi.NotFoundError}
9925
+ * @throws {@link OpikApi.ConflictError}
9917
9926
  *
9918
9927
  * @example
9919
9928
  * await client.datasets.restoreDatasetVersion("id", {
package/dist/index.d.ts CHANGED
@@ -4523,6 +4523,9 @@ interface Check {
4523
4523
  declare const CheckName: {
4524
4524
  readonly Topic: "TOPIC";
4525
4525
  readonly Pii: "PII";
4526
+ readonly LlmJudge: "LLM_JUDGE";
4527
+ readonly PromptInjection: "PROMPT_INJECTION";
4528
+ readonly CustomClassifier: "CUSTOM_CLASSIFIER";
4526
4529
  };
4527
4530
  type CheckName = (typeof CheckName)[keyof typeof CheckName];
4528
4531
 
@@ -4534,6 +4537,9 @@ interface CheckPublic {
4534
4537
  declare const CheckPublicName: {
4535
4538
  readonly Topic: "TOPIC";
4536
4539
  readonly Pii: "PII";
4540
+ readonly LlmJudge: "LLM_JUDGE";
4541
+ readonly PromptInjection: "PROMPT_INJECTION";
4542
+ readonly CustomClassifier: "CUSTOM_CLASSIFIER";
4537
4543
  };
4538
4544
  type CheckPublicName = (typeof CheckPublicName)[keyof typeof CheckPublicName];
4539
4545
 
@@ -5892,6 +5898,9 @@ interface GuardrailWrite {
5892
5898
  declare const GuardrailWriteName: {
5893
5899
  readonly Topic: "TOPIC";
5894
5900
  readonly Pii: "PII";
5901
+ readonly LlmJudge: "LLM_JUDGE";
5902
+ readonly PromptInjection: "PROMPT_INJECTION";
5903
+ readonly CustomClassifier: "CUSTOM_CLASSIFIER";
5895
5904
  };
5896
5905
  type GuardrailWriteName = (typeof GuardrailWriteName)[keyof typeof GuardrailWriteName];
5897
5906
 
@@ -7079,7 +7088,6 @@ interface ServiceTogglesConfig {
7079
7088
  ollieEnabled: boolean;
7080
7089
  projectHomepageEnabled: boolean;
7081
7090
  agenticToolsEnabled: boolean;
7082
- agentInsightsEnabled: boolean;
7083
7091
  onlineScoringTracingEnabled: boolean;
7084
7092
  v2WorkspaceAllowlistIds: string[];
7085
7093
  v1WorkspaceAllowlistIds: string[];
@@ -9914,6 +9922,7 @@ declare class DatasetsClient {
9914
9922
  * @param {DatasetsClient.RequestOptions} requestOptions - Request-specific configuration.
9915
9923
  *
9916
9924
  * @throws {@link OpikApi.NotFoundError}
9925
+ * @throws {@link OpikApi.ConflictError}
9917
9926
  *
9918
9927
  * @example
9919
9928
  * await client.datasets.restoreDatasetVersion("id", {
package/dist/index.js CHANGED
@@ -1 +1 @@
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
+ import {Ia}from'./chunk-OWILEP3H.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-OWILEP3H.js';Ia();
@@ -1 +1 @@
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();
1
+ import {Ca}from'./chunk-OWILEP3H.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-OWILEP3H.js';Ca();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opik",
3
3
  "description": "Opik TypeScript and JavaScript SDK",
4
- "version": "2.2.6",
4
+ "version": "2.2.8",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",