opik 2.2.139 → 2.2.141

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
@@ -1221,14 +1221,13 @@ type DownloadDatasetExportRequest = {};
1221
1221
 
1222
1222
  /**
1223
1223
  * @example
1224
- * {
1225
- * experimentIds: "experiment_ids"
1226
- * }
1224
+ * {}
1227
1225
  */
1228
1226
  interface FindDatasetItemsWithExperimentItemsRequest {
1229
1227
  page?: number;
1230
1228
  size?: number;
1231
- experimentIds: string;
1229
+ experimentIds?: string;
1230
+ datasetVersion?: string;
1232
1231
  filters?: string;
1233
1232
  sorting?: string;
1234
1233
  search?: string;
@@ -4653,11 +4652,13 @@ interface BooleanFeedbackDetailUpdate {
4653
4652
  }
4654
4653
 
4655
4654
  interface BreakdownConfig {
4655
+ /** 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
4656
  field?: BreakdownConfigField;
4657
4657
  metadataKey?: string;
4658
4658
  subMetric?: string;
4659
4659
  }
4660
4660
 
4661
+ /** 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
4662
  declare const BreakdownConfigField: {
4662
4663
  readonly None: "none";
4663
4664
  readonly Tags: "tags";
@@ -4673,11 +4674,13 @@ declare const BreakdownConfigField: {
4673
4674
  type BreakdownConfigField = (typeof BreakdownConfigField)[keyof typeof BreakdownConfigField];
4674
4675
 
4675
4676
  interface BreakdownConfigPublic {
4677
+ /** 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
4678
  field?: BreakdownConfigPublicField;
4677
4679
  metadataKey?: string;
4678
4680
  subMetric?: string;
4679
4681
  }
4680
4682
 
4683
+ /** 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
4684
  declare const BreakdownConfigPublicField: {
4682
4685
  readonly None: "none";
4683
4686
  readonly Tags: "tags";
@@ -6681,6 +6684,7 @@ interface ModelParams {
6681
6684
  tools?: ToolsParam;
6682
6685
  samplingExclusive?: boolean;
6683
6686
  thinksByDefault?: boolean;
6687
+ onlyRoute?: string;
6684
6688
  routes?: Record<string, ModelParams>;
6685
6689
  }
6686
6690
 
@@ -10371,11 +10375,9 @@ declare class DatasetsClient {
10371
10375
  * @param {DatasetsClient.RequestOptions} requestOptions - Request-specific configuration.
10372
10376
  *
10373
10377
  * @example
10374
- * await client.datasets.findDatasetItemsWithExperimentItems("id", {
10375
- * experimentIds: "experiment_ids"
10376
- * })
10378
+ * await client.datasets.findDatasetItemsWithExperimentItems("id")
10377
10379
  */
10378
- findDatasetItemsWithExperimentItems(id: string, request: FindDatasetItemsWithExperimentItemsRequest, requestOptions?: DatasetsClient.RequestOptions): HttpResponsePromise<DatasetItemPageCompare>;
10380
+ findDatasetItemsWithExperimentItems(id: string, request?: FindDatasetItemsWithExperimentItemsRequest, requestOptions?: DatasetsClient.RequestOptions): HttpResponsePromise<DatasetItemPageCompare>;
10379
10381
  private __findDatasetItemsWithExperimentItems;
10380
10382
  /**
10381
10383
  * Get dataset by name
package/dist/index.d.ts CHANGED
@@ -1221,14 +1221,13 @@ type DownloadDatasetExportRequest = {};
1221
1221
 
1222
1222
  /**
1223
1223
  * @example
1224
- * {
1225
- * experimentIds: "experiment_ids"
1226
- * }
1224
+ * {}
1227
1225
  */
1228
1226
  interface FindDatasetItemsWithExperimentItemsRequest {
1229
1227
  page?: number;
1230
1228
  size?: number;
1231
- experimentIds: string;
1229
+ experimentIds?: string;
1230
+ datasetVersion?: string;
1232
1231
  filters?: string;
1233
1232
  sorting?: string;
1234
1233
  search?: string;
@@ -4653,11 +4652,13 @@ interface BooleanFeedbackDetailUpdate {
4653
4652
  }
4654
4653
 
4655
4654
  interface BreakdownConfig {
4655
+ /** 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
4656
  field?: BreakdownConfigField;
4657
4657
  metadataKey?: string;
4658
4658
  subMetric?: string;
4659
4659
  }
4660
4660
 
4661
+ /** 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
4662
  declare const BreakdownConfigField: {
4662
4663
  readonly None: "none";
4663
4664
  readonly Tags: "tags";
@@ -4673,11 +4674,13 @@ declare const BreakdownConfigField: {
4673
4674
  type BreakdownConfigField = (typeof BreakdownConfigField)[keyof typeof BreakdownConfigField];
4674
4675
 
4675
4676
  interface BreakdownConfigPublic {
4677
+ /** 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
4678
  field?: BreakdownConfigPublicField;
4677
4679
  metadataKey?: string;
4678
4680
  subMetric?: string;
4679
4681
  }
4680
4682
 
4683
+ /** 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
4684
  declare const BreakdownConfigPublicField: {
4682
4685
  readonly None: "none";
4683
4686
  readonly Tags: "tags";
@@ -6681,6 +6684,7 @@ interface ModelParams {
6681
6684
  tools?: ToolsParam;
6682
6685
  samplingExclusive?: boolean;
6683
6686
  thinksByDefault?: boolean;
6687
+ onlyRoute?: string;
6684
6688
  routes?: Record<string, ModelParams>;
6685
6689
  }
6686
6690
 
@@ -10371,11 +10375,9 @@ declare class DatasetsClient {
10371
10375
  * @param {DatasetsClient.RequestOptions} requestOptions - Request-specific configuration.
10372
10376
  *
10373
10377
  * @example
10374
- * await client.datasets.findDatasetItemsWithExperimentItems("id", {
10375
- * experimentIds: "experiment_ids"
10376
- * })
10378
+ * await client.datasets.findDatasetItemsWithExperimentItems("id")
10377
10379
  */
10378
- findDatasetItemsWithExperimentItems(id: string, request: FindDatasetItemsWithExperimentItemsRequest, requestOptions?: DatasetsClient.RequestOptions): HttpResponsePromise<DatasetItemPageCompare>;
10380
+ findDatasetItemsWithExperimentItems(id: string, request?: FindDatasetItemsWithExperimentItemsRequest, requestOptions?: DatasetsClient.RequestOptions): HttpResponsePromise<DatasetItemPageCompare>;
10379
10381
  private __findDatasetItemsWithExperimentItems;
10380
10382
  /**
10381
10383
  * Get dataset by name
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-3LEAZVUH.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-3LEAZVUH.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-3LEAZVUH.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-3LEAZVUH.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.141",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",