opik 2.2.138 → 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
 
@@ -16772,7 +16777,7 @@ declare class OpikClient {
16772
16777
  * @param options - Search options
16773
16778
  * @param options.projectName - Name of the project to search in. Defaults to the client's configured project.
16774
16779
  * @param options.filterString - Filter string using Opik Query Language (OQL).
16775
- * Supports filtering by: id, status, feedback_scores, duration, number_of_messages, tags, metadata, etc.
16780
+ * Supports filtering by: id, status, feedback_scores, duration, number_of_messages, tags, comments, metadata, etc.
16776
16781
  * Examples: 'status = "active"', 'feedback_scores.quality > 0.8', 'duration > 300'
16777
16782
  * @param options.maxResults - Maximum number of threads to return (default: 1000)
16778
16783
  * @param options.truncate - Whether to truncate large fields in the response (default: true)
@@ -18907,7 +18912,7 @@ declare function resetGlobalClient(): void;
18907
18912
  /**
18908
18913
  * Supported column types in OQL queries
18909
18914
  */
18910
- type ColumnType = "string" | "date_time" | "dictionary" | "feedback_scores_number" | "list" | "number" | "error_container" | "enum" | "map";
18915
+ type ColumnType = "string" | "date_time" | "dictionary" | "feedback_scores_number" | "list" | "number" | "error_container" | "comments" | "enum" | "map";
18911
18916
  /**
18912
18917
  * Parsed filter expression structure
18913
18918
  */
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
 
@@ -16772,7 +16777,7 @@ declare class OpikClient {
16772
16777
  * @param options - Search options
16773
16778
  * @param options.projectName - Name of the project to search in. Defaults to the client's configured project.
16774
16779
  * @param options.filterString - Filter string using Opik Query Language (OQL).
16775
- * Supports filtering by: id, status, feedback_scores, duration, number_of_messages, tags, metadata, etc.
16780
+ * Supports filtering by: id, status, feedback_scores, duration, number_of_messages, tags, comments, metadata, etc.
16776
16781
  * Examples: 'status = "active"', 'feedback_scores.quality > 0.8', 'duration > 300'
16777
16782
  * @param options.maxResults - Maximum number of threads to return (default: 1000)
16778
16783
  * @param options.truncate - Whether to truncate large fields in the response (default: true)
@@ -18907,7 +18912,7 @@ declare function resetGlobalClient(): void;
18907
18912
  /**
18908
18913
  * Supported column types in OQL queries
18909
18914
  */
18910
- type ColumnType = "string" | "date_time" | "dictionary" | "feedback_scores_number" | "list" | "number" | "error_container" | "enum" | "map";
18915
+ type ColumnType = "string" | "date_time" | "dictionary" | "feedback_scores_number" | "list" | "number" | "error_container" | "comments" | "enum" | "map";
18911
18916
  /**
18912
18917
  * Parsed filter expression structure
18913
18918
  */
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {Ia}from'./chunk-AFMDUCGL.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-AFMDUCGL.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-AFMDUCGL.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-AFMDUCGL.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.138",
4
+ "version": "2.2.140",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",