opik 2.2.139 → 2.2.140

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
@@ -4653,11 +4653,13 @@ interface BooleanFeedbackDetailUpdate {
4653
4653
  }
4654
4654
 
4655
4655
  interface BreakdownConfig {
4656
+ /** Field to group by. Tags are overlapping groups: each tag receives the full metric value. For cost, adding tag groups can exceed actual spend; use provider or model for additive span cost totals. */
4656
4657
  field?: BreakdownConfigField;
4657
4658
  metadataKey?: string;
4658
4659
  subMetric?: string;
4659
4660
  }
4660
4661
 
4662
+ /** Field to group by. Tags are overlapping groups: each tag receives the full metric value. For cost, adding tag groups can exceed actual spend; use provider or model for additive span cost totals. */
4661
4663
  declare const BreakdownConfigField: {
4662
4664
  readonly None: "none";
4663
4665
  readonly Tags: "tags";
@@ -4673,11 +4675,13 @@ declare const BreakdownConfigField: {
4673
4675
  type BreakdownConfigField = (typeof BreakdownConfigField)[keyof typeof BreakdownConfigField];
4674
4676
 
4675
4677
  interface BreakdownConfigPublic {
4678
+ /** Field to group by. Tags are overlapping groups: each tag receives the full metric value. For cost, adding tag groups can exceed actual spend; use provider or model for additive span cost totals. */
4676
4679
  field?: BreakdownConfigPublicField;
4677
4680
  metadataKey?: string;
4678
4681
  subMetric?: string;
4679
4682
  }
4680
4683
 
4684
+ /** Field to group by. Tags are overlapping groups: each tag receives the full metric value. For cost, adding tag groups can exceed actual spend; use provider or model for additive span cost totals. */
4681
4685
  declare const BreakdownConfigPublicField: {
4682
4686
  readonly None: "none";
4683
4687
  readonly Tags: "tags";
@@ -6681,6 +6685,7 @@ interface ModelParams {
6681
6685
  tools?: ToolsParam;
6682
6686
  samplingExclusive?: boolean;
6683
6687
  thinksByDefault?: boolean;
6688
+ onlyRoute?: string;
6684
6689
  routes?: Record<string, ModelParams>;
6685
6690
  }
6686
6691
 
package/dist/index.d.ts CHANGED
@@ -4653,11 +4653,13 @@ interface BooleanFeedbackDetailUpdate {
4653
4653
  }
4654
4654
 
4655
4655
  interface BreakdownConfig {
4656
+ /** Field to group by. Tags are overlapping groups: each tag receives the full metric value. For cost, adding tag groups can exceed actual spend; use provider or model for additive span cost totals. */
4656
4657
  field?: BreakdownConfigField;
4657
4658
  metadataKey?: string;
4658
4659
  subMetric?: string;
4659
4660
  }
4660
4661
 
4662
+ /** Field to group by. Tags are overlapping groups: each tag receives the full metric value. For cost, adding tag groups can exceed actual spend; use provider or model for additive span cost totals. */
4661
4663
  declare const BreakdownConfigField: {
4662
4664
  readonly None: "none";
4663
4665
  readonly Tags: "tags";
@@ -4673,11 +4675,13 @@ declare const BreakdownConfigField: {
4673
4675
  type BreakdownConfigField = (typeof BreakdownConfigField)[keyof typeof BreakdownConfigField];
4674
4676
 
4675
4677
  interface BreakdownConfigPublic {
4678
+ /** Field to group by. Tags are overlapping groups: each tag receives the full metric value. For cost, adding tag groups can exceed actual spend; use provider or model for additive span cost totals. */
4676
4679
  field?: BreakdownConfigPublicField;
4677
4680
  metadataKey?: string;
4678
4681
  subMetric?: string;
4679
4682
  }
4680
4683
 
4684
+ /** Field to group by. Tags are overlapping groups: each tag receives the full metric value. For cost, adding tag groups can exceed actual spend; use provider or model for additive span cost totals. */
4681
4685
  declare const BreakdownConfigPublicField: {
4682
4686
  readonly None: "none";
4683
4687
  readonly Tags: "tags";
@@ -6681,6 +6685,7 @@ interface ModelParams {
6681
6685
  tools?: ToolsParam;
6682
6686
  samplingExclusive?: boolean;
6683
6687
  thinksByDefault?: boolean;
6688
+ onlyRoute?: string;
6684
6689
  routes?: Record<string, ModelParams>;
6685
6690
  }
6686
6691
 
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {Ia}from'./chunk-QKJJELOL.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-QKJJELOL.js';Ia();
1
+ import {Ia}from'./chunk-IYS4N7LS.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-IYS4N7LS.js';Ia();
@@ -1 +1 @@
1
- import {Ca}from'./chunk-QKJJELOL.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-QKJJELOL.js';Ca();
1
+ import {Ca}from'./chunk-IYS4N7LS.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-IYS4N7LS.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.139",
4
+ "version": "2.2.140",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",