opik 2.4.0 → 2.4.2

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.ts CHANGED
@@ -825,8 +825,15 @@ interface GetEvaluatorByIdRequest {
825
825
  */
826
826
  interface GetEvaluatorLogsByIdRequest {
827
827
  size?: number;
828
+ traceId?: string;
828
829
  }
829
830
 
831
+ /**
832
+ * @example
833
+ * {}
834
+ */
835
+ type GetOnlineScoringStatusesRequest = {};
836
+
830
837
  /**
831
838
  * @example
832
839
  * {
@@ -1714,7 +1721,9 @@ type CancelGuardrailTrainingRunRequest = {};
1714
1721
  * @example
1715
1722
  * {
1716
1723
  * name: "name",
1717
- * description: "description",
1724
+ * config: {
1725
+ * prompt: "prompt"
1726
+ * },
1718
1727
  * file: {
1719
1728
  * "key": "value"
1720
1729
  * }
@@ -1722,7 +1731,9 @@ type CancelGuardrailTrainingRunRequest = {};
1722
1731
  */
1723
1732
  interface CreateGuardrailModelRequest {
1724
1733
  name: string;
1725
- description: string;
1734
+ /** A note for people on what the model is for; the classifier never sees it */
1735
+ description?: string;
1736
+ config: GuardrailModelConfig;
1726
1737
  /** JSON Lines in UTF-8, one {"text": "...", "label": "yes" | "no"} object per line, yes meaning the text violates. The deployment sets the limits; by default 20 to 50,000 rows, at least 5 per label, up to 12,000 characters each, 50 MB */
1727
1738
  file: Record<string, unknown>;
1728
1739
  }
@@ -1769,12 +1780,12 @@ type GetGuardrailTrainingRunByIdRequest = {};
1769
1780
 
1770
1781
  /**
1771
1782
  * @example
1772
- * {
1773
- * description: "description"
1774
- * }
1783
+ * {}
1775
1784
  */
1776
1785
  interface GuardrailModelUpdate {
1777
- description: string;
1786
+ /** A new note for people; a blank one removes the note */
1787
+ description?: string;
1788
+ config?: GuardrailModelConfig;
1778
1789
  }
1779
1790
 
1780
1791
  /**
@@ -4433,7 +4444,8 @@ interface AnnotationQueueAnnotatorViewWrite {
4433
4444
 
4434
4445
  interface AnnotationQueueAutomation {
4435
4446
  enabled?: boolean;
4436
- conditions?: Conditions;
4447
+ /** Items matching every filter of any one group are added. Filters are those of the traces and threads endpoints */
4448
+ filterGroups?: AutomationFilter[][];
4437
4449
  maxItemsInQueue?: number;
4438
4450
  /** When true, removes the item ceiling so automation adds without bound */
4439
4451
  clearMaxItemsInQueue?: boolean;
@@ -4441,13 +4453,15 @@ interface AnnotationQueueAutomation {
4441
4453
 
4442
4454
  interface AnnotationQueueAutomationPublic {
4443
4455
  enabled?: boolean;
4444
- conditions?: ConditionsPublic;
4456
+ /** Items matching every filter of any one group are added. Filters are those of the traces and threads endpoints */
4457
+ filterGroups?: AutomationFilterPublic[][];
4445
4458
  maxItemsInQueue?: number;
4446
4459
  }
4447
4460
 
4448
4461
  interface AnnotationQueueAutomationWrite {
4449
4462
  enabled?: boolean;
4450
- conditions?: ConditionsWrite;
4463
+ /** Items matching every filter of any one group are added. Filters are those of the traces and threads endpoints */
4464
+ filterGroups?: AutomationFilterWrite[][];
4451
4465
  maxItemsInQueue?: number;
4452
4466
  /** When true, removes the item ceiling so automation adds without bound */
4453
4467
  clearMaxItemsInQueue?: boolean;
@@ -4684,6 +4698,93 @@ interface AuthorizeContext {
4684
4698
  csrfToken?: string;
4685
4699
  }
4686
4700
 
4701
+ /**
4702
+ * Items matching every filter of any one group are added. Filters are those of the traces and threads endpoints
4703
+ */
4704
+ interface AutomationFilter {
4705
+ /** A trace field for trace queues, a thread field for thread queues, as accepted by the traces and threads filters */
4706
+ field: string;
4707
+ operator: AutomationFilterOperator;
4708
+ key?: string;
4709
+ value?: string;
4710
+ }
4711
+
4712
+ declare const AutomationFilterOperator: {
4713
+ readonly Contains: "contains";
4714
+ readonly NotContains: "not_contains";
4715
+ readonly StartsWith: "starts_with";
4716
+ readonly EndsWith: "ends_with";
4717
+ readonly EqualTo: "=";
4718
+ readonly NotEquals: "!=";
4719
+ readonly GreaterThan: ">";
4720
+ readonly GreaterThanOrEqualTo: ">=";
4721
+ readonly LessThan: "<";
4722
+ readonly LessThanOrEqualTo: "<=";
4723
+ readonly IsEmpty: "is_empty";
4724
+ readonly IsNotEmpty: "is_not_empty";
4725
+ readonly In: "in";
4726
+ readonly NotIn: "not_in";
4727
+ };
4728
+ type AutomationFilterOperator = (typeof AutomationFilterOperator)[keyof typeof AutomationFilterOperator];
4729
+
4730
+ /**
4731
+ * Items matching every filter of any one group are added. Filters are those of the traces and threads endpoints
4732
+ */
4733
+ interface AutomationFilterPublic {
4734
+ /** A trace field for trace queues, a thread field for thread queues, as accepted by the traces and threads filters */
4735
+ field: string;
4736
+ operator: AutomationFilterPublicOperator;
4737
+ key?: string;
4738
+ value?: string;
4739
+ }
4740
+
4741
+ declare const AutomationFilterPublicOperator: {
4742
+ readonly Contains: "contains";
4743
+ readonly NotContains: "not_contains";
4744
+ readonly StartsWith: "starts_with";
4745
+ readonly EndsWith: "ends_with";
4746
+ readonly EqualTo: "=";
4747
+ readonly NotEquals: "!=";
4748
+ readonly GreaterThan: ">";
4749
+ readonly GreaterThanOrEqualTo: ">=";
4750
+ readonly LessThan: "<";
4751
+ readonly LessThanOrEqualTo: "<=";
4752
+ readonly IsEmpty: "is_empty";
4753
+ readonly IsNotEmpty: "is_not_empty";
4754
+ readonly In: "in";
4755
+ readonly NotIn: "not_in";
4756
+ };
4757
+ type AutomationFilterPublicOperator = (typeof AutomationFilterPublicOperator)[keyof typeof AutomationFilterPublicOperator];
4758
+
4759
+ /**
4760
+ * Items matching every filter of any one group are added. Filters are those of the traces and threads endpoints
4761
+ */
4762
+ interface AutomationFilterWrite {
4763
+ /** A trace field for trace queues, a thread field for thread queues, as accepted by the traces and threads filters */
4764
+ field: string;
4765
+ operator: AutomationFilterWriteOperator;
4766
+ key?: string;
4767
+ value?: string;
4768
+ }
4769
+
4770
+ declare const AutomationFilterWriteOperator: {
4771
+ readonly Contains: "contains";
4772
+ readonly NotContains: "not_contains";
4773
+ readonly StartsWith: "starts_with";
4774
+ readonly EndsWith: "ends_with";
4775
+ readonly EqualTo: "=";
4776
+ readonly NotEquals: "!=";
4777
+ readonly GreaterThan: ">";
4778
+ readonly GreaterThanOrEqualTo: ">=";
4779
+ readonly LessThan: "<";
4780
+ readonly LessThanOrEqualTo: "<=";
4781
+ readonly IsEmpty: "is_empty";
4782
+ readonly IsNotEmpty: "is_not_empty";
4783
+ readonly In: "in";
4784
+ readonly NotIn: "not_in";
4785
+ };
4786
+ type AutomationFilterWriteOperator = (typeof AutomationFilterWriteOperator)[keyof typeof AutomationFilterWriteOperator];
4787
+
4687
4788
  interface AutomationRuleEvaluatorLlmAsJudgePublic {
4688
4789
  filters?: TraceFilterPublic[];
4689
4790
  code?: LlmAsJudgeCodePublic;
@@ -5363,30 +5464,6 @@ interface CompletionTokensDetails {
5363
5464
  reasoningTokens?: number;
5364
5465
  }
5365
5466
 
5366
- interface ConditionGroup {
5367
- conditions: ScoreCondition[];
5368
- }
5369
-
5370
- interface ConditionGroupPublic {
5371
- conditions: ScoreConditionPublic[];
5372
- }
5373
-
5374
- interface ConditionGroupWrite {
5375
- conditions: ScoreConditionWrite[];
5376
- }
5377
-
5378
- interface Conditions {
5379
- groups: ConditionGroup[];
5380
- }
5381
-
5382
- interface ConditionsPublic {
5383
- groups: ConditionGroupPublic[];
5384
- }
5385
-
5386
- interface ConditionsWrite {
5387
- groups: ConditionGroupWrite[];
5388
- }
5389
-
5390
5467
  interface ConsentResponse {
5391
5468
  redirectTo?: string;
5392
5469
  }
@@ -5493,6 +5570,10 @@ interface DashboardWidgetQueryRequest {
5493
5570
  intervalStart?: Date;
5494
5571
  /** End of the date range, bound to {{window_end}} in the dashboard saved query. Omit for now. */
5495
5572
  intervalEnd?: Date;
5573
+ /** For a view widget: the name of the view input whose saved query to run. */
5574
+ input?: string;
5575
+ /** For a view widget: the version of the widget's view to read the input from. Omit for the version the saved widget pins. */
5576
+ version?: number;
5496
5577
  }
5497
5578
 
5498
5579
  interface DashboardWrite {
@@ -6663,8 +6744,9 @@ interface GuardrailModel {
6663
6744
  id?: string;
6664
6745
  /** Unique in the workspace, ignoring case; never changes */
6665
6746
  name: string;
6666
- /** What the model flags: the question its adapter is trained and served on */
6667
- description: string;
6747
+ /** A note for people on what the model is for; the classifier never sees it */
6748
+ description?: string;
6749
+ config: GuardrailModelConfig;
6668
6750
  servingRun?: GuardrailTrainingRun;
6669
6751
  latestRun?: GuardrailTrainingRun;
6670
6752
  createdAt?: Date;
@@ -6673,6 +6755,16 @@ interface GuardrailModel {
6673
6755
  lastUpdatedBy?: string;
6674
6756
  }
6675
6757
 
6758
+ /**
6759
+ * A new config, replacing the current one whole; it applies from the next check, with no retrain
6760
+ */
6761
+ interface GuardrailModelConfig {
6762
+ /** The shape of this config, which the server sets */
6763
+ version?: number;
6764
+ /** The task the classifier judges each text with, asked as a yes/no question, yes meaning the text violates; examples, if any, go here. Every check uses the current prompt, so editing it needs no retrain */
6765
+ prompt: string;
6766
+ }
6767
+
6676
6768
  interface GuardrailModelPage {
6677
6769
  content?: GuardrailModel[];
6678
6770
  page?: number;
@@ -7366,6 +7458,62 @@ declare const OllieReportStatus: {
7366
7458
  };
7367
7459
  type OllieReportStatus = (typeof OllieReportStatus)[keyof typeof OllieReportStatus];
7368
7460
 
7461
+ interface OnlineScoringStatus {
7462
+ ruleId?: string;
7463
+ /** Set for a test suite's assertion judge, whose rule id is not stable */
7464
+ suiteAssertion?: boolean;
7465
+ state?: OnlineScoringStatusState;
7466
+ reason?: OnlineScoringStatusReason;
7467
+ /** The failed delivery while retrying; 0 otherwise */
7468
+ attempt?: number;
7469
+ /** Deliveries before giving up while retrying; 0 otherwise */
7470
+ maxAttempts?: number;
7471
+ updatedAt?: Date;
7472
+ }
7473
+
7474
+ interface OnlineScoringStatusList {
7475
+ content?: OnlineScoringStatus[];
7476
+ }
7477
+
7478
+ declare const OnlineScoringStatusReason: {
7479
+ readonly NotConfigured: "not_configured";
7480
+ readonly Authentication: "authentication";
7481
+ readonly NotFound: "not_found";
7482
+ readonly Rejected: "rejected";
7483
+ readonly Refused: "refused";
7484
+ readonly RateLimited: "rate_limited";
7485
+ readonly Timeout: "timeout";
7486
+ readonly Unreachable: "unreachable";
7487
+ readonly ServerError: "server_error";
7488
+ readonly NoScore: "no_score";
7489
+ readonly UnresolvedArguments: "unresolved_arguments";
7490
+ readonly Other: "other";
7491
+ };
7492
+ type OnlineScoringStatusReason = (typeof OnlineScoringStatusReason)[keyof typeof OnlineScoringStatusReason];
7493
+
7494
+ declare const OnlineScoringStatusState: {
7495
+ readonly Retrying: "retrying";
7496
+ readonly Failed: "failed";
7497
+ readonly Skipped: "skipped";
7498
+ };
7499
+ type OnlineScoringStatusState = (typeof OnlineScoringStatusState)[keyof typeof OnlineScoringStatusState];
7500
+
7501
+ interface OpenRouterRegionResponse {
7502
+ /** Where the workspace's OpenRouter requests go: the host of its OpenRouter provider's base_url, or of the server's default OpenRouter URL when it has none. unknown for a host other than openrouter.ai, eu.openrouter.ai or us.openrouter.ai */
7503
+ region?: OpenRouterRegionResponseRegion;
7504
+ /** Decision models the server refuses for this workspace, each with the region that doesn't serve it: the server's decisions URL region or the workspace's region */
7505
+ unavailableDecisionModels?: UnavailableDecisionModel[];
7506
+ }
7507
+
7508
+ /** Where the workspace's OpenRouter requests go: the host of its OpenRouter provider's base_url, or of the server's default OpenRouter URL when it has none. unknown for a host other than openrouter.ai, eu.openrouter.ai or us.openrouter.ai */
7509
+ declare const OpenRouterRegionResponseRegion: {
7510
+ readonly Global: "global";
7511
+ readonly Eu: "eu";
7512
+ readonly Us: "us";
7513
+ readonly Unknown: "unknown";
7514
+ };
7515
+ type OpenRouterRegionResponseRegion = (typeof OpenRouterRegionResponseRegion)[keyof typeof OpenRouterRegionResponseRegion];
7516
+
7369
7517
  interface OptimizationPagePublic {
7370
7518
  page?: number;
7371
7519
  size?: number;
@@ -8169,45 +8317,6 @@ interface ScopedAnalyticsQueryRequest {
8169
8317
  projectId?: string;
8170
8318
  }
8171
8319
 
8172
- interface ScoreCondition {
8173
- scoreName: string;
8174
- operator: ScoreConditionOperator;
8175
- value: number;
8176
- }
8177
-
8178
- declare const ScoreConditionOperator: {
8179
- readonly GreaterThan: ">";
8180
- readonly LessThan: "<";
8181
- readonly EqualTo: "=";
8182
- };
8183
- type ScoreConditionOperator = (typeof ScoreConditionOperator)[keyof typeof ScoreConditionOperator];
8184
-
8185
- interface ScoreConditionPublic {
8186
- scoreName: string;
8187
- operator: ScoreConditionPublicOperator;
8188
- value: number;
8189
- }
8190
-
8191
- declare const ScoreConditionPublicOperator: {
8192
- readonly GreaterThan: ">";
8193
- readonly LessThan: "<";
8194
- readonly EqualTo: "=";
8195
- };
8196
- type ScoreConditionPublicOperator = (typeof ScoreConditionPublicOperator)[keyof typeof ScoreConditionPublicOperator];
8197
-
8198
- interface ScoreConditionWrite {
8199
- scoreName: string;
8200
- operator: ScoreConditionWriteOperator;
8201
- value: number;
8202
- }
8203
-
8204
- declare const ScoreConditionWriteOperator: {
8205
- readonly GreaterThan: ">";
8206
- readonly LessThan: "<";
8207
- readonly EqualTo: "=";
8208
- };
8209
- type ScoreConditionWriteOperator = (typeof ScoreConditionWriteOperator)[keyof typeof ScoreConditionWriteOperator];
8210
-
8211
8320
  interface ScoreName {
8212
8321
  name?: string;
8213
8322
  type?: string;
@@ -9222,6 +9331,22 @@ declare const TraceWriteSource: {
9222
9331
  };
9223
9332
  type TraceWriteSource = (typeof TraceWriteSource)[keyof typeof TraceWriteSource];
9224
9333
 
9334
+ /**
9335
+ * Decision models the server refuses for this workspace, each with the region that doesn't serve it: the server's decisions URL region or the workspace's region
9336
+ */
9337
+ interface UnavailableDecisionModel {
9338
+ model?: string;
9339
+ region?: UnavailableDecisionModelRegion;
9340
+ }
9341
+
9342
+ declare const UnavailableDecisionModelRegion: {
9343
+ readonly Global: "global";
9344
+ readonly Eu: "eu";
9345
+ readonly Us: "us";
9346
+ readonly Unknown: "unknown";
9347
+ };
9348
+ type UnavailableDecisionModelRegion = (typeof UnavailableDecisionModelRegion)[keyof typeof UnavailableDecisionModelRegion];
9349
+
9225
9350
  interface Usage {
9226
9351
  totalTokens?: number;
9227
9352
  promptTokens?: number;
@@ -10671,6 +10796,18 @@ declare class AutomationRuleEvaluatorsClient {
10671
10796
  */
10672
10797
  getEvaluatorLogsById(id: string, request?: GetEvaluatorLogsByIdRequest, requestOptions?: AutomationRuleEvaluatorsClient.RequestOptions): HttpResponsePromise<LogPage>;
10673
10798
  private __getEvaluatorLogsById;
10799
+ /**
10800
+ * Get, per rule, why an experiment trace has no score from it yet: retrying, failed or skipped. A rule with no entry has scored the trace or not reported on it
10801
+ *
10802
+ * @param {string} trace_id
10803
+ * @param {OpikApi.GetOnlineScoringStatusesRequest} request
10804
+ * @param {AutomationRuleEvaluatorsClient.RequestOptions} requestOptions - Request-specific configuration.
10805
+ *
10806
+ * @example
10807
+ * await client.automationRuleEvaluators.getOnlineScoringStatuses("trace_id")
10808
+ */
10809
+ getOnlineScoringStatuses(trace_id: string, request?: GetOnlineScoringStatusesRequest, requestOptions?: AutomationRuleEvaluatorsClient.RequestOptions): HttpResponsePromise<OnlineScoringStatusList>;
10810
+ private __getOnlineScoringStatuses;
10674
10811
  }
10675
10812
 
10676
10813
  declare namespace ChatCompletionsClient {
@@ -10877,7 +11014,7 @@ declare class DashboardsClient {
10877
11014
  deleteDashboardsBatch(request: BatchDelete, requestOptions?: DashboardsClient.RequestOptions): HttpResponsePromise<void>;
10878
11015
  private __deleteDashboardsBatch;
10879
11016
  /**
10880
- * Runs the query saved on an Ollie chart widget of this dashboard over the given date range and returns its rows. The query is read from the saved widget; the request carries no SQL. Returns 501 when Ollie or Custom Charts is not enabled for the workspace.
11017
+ * Runs the query saved on an Ollie chart widget of this dashboard, or the query of the given input of the view version a view widget pins, over the given date range and returns its rows. The query is read from the saved widget; the request carries no SQL. Returns 501 when Ollie or Custom Charts is not enabled for the workspace.
10881
11018
  *
10882
11019
  * @param {string} dashboardId
10883
11020
  * @param {string} widgetId
@@ -11962,7 +12099,7 @@ declare class GuardrailModelsClient {
11962
12099
  findGuardrailModels(request?: FindGuardrailModelsRequest, requestOptions?: GuardrailModelsClient.RequestOptions): HttpResponsePromise<GuardrailModelPage>;
11963
12100
  private __findGuardrailModels;
11964
12101
  /**
11965
- * Create a guardrail model and start its first training run from a labelled JSONL file
12102
+ * Create a guardrail model from its config and start its first training run from a labelled JSONL file; a rule can use the model once a training run completes
11966
12103
  *
11967
12104
  * @param {OpikApi.CreateGuardrailModelRequest} request
11968
12105
  * @param {GuardrailModelsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -11977,7 +12114,9 @@ declare class GuardrailModelsClient {
11977
12114
  * import { createReadStream } from "fs";
11978
12115
  * await client.guardrailModels.createGuardrailModel({
11979
12116
  * name: "name",
11980
- * description: "description",
12117
+ * config: {
12118
+ * prompt: "prompt"
12119
+ * },
11981
12120
  * file: {
11982
12121
  * "key": "value"
11983
12122
  * }
@@ -12018,7 +12157,7 @@ declare class GuardrailModelsClient {
12018
12157
  deleteGuardrailModel(id: string, request?: DeleteGuardrailModelRequest, requestOptions?: GuardrailModelsClient.RequestOptions): HttpResponsePromise<void>;
12019
12158
  private __deleteGuardrailModel;
12020
12159
  /**
12021
- * Update a guardrail model's description; its name never changes
12160
+ * Update a guardrail model's description, its config or both; what is absent stays as it is, a blank description removes it, and the name never changes. A new config applies from the next check, with no retrain
12022
12161
  *
12023
12162
  * @param {string} id
12024
12163
  * @param {OpikApi.GuardrailModelUpdate} request
@@ -12030,11 +12169,9 @@ declare class GuardrailModelsClient {
12030
12169
  * @throws {@link OpikApi.ServiceUnavailableError}
12031
12170
  *
12032
12171
  * @example
12033
- * await client.guardrailModels.updateGuardrailModel("id", {
12034
- * description: "description"
12035
- * })
12172
+ * await client.guardrailModels.updateGuardrailModel("id")
12036
12173
  */
12037
- updateGuardrailModel(id: string, request: GuardrailModelUpdate, requestOptions?: GuardrailModelsClient.RequestOptions): HttpResponsePromise<void>;
12174
+ updateGuardrailModel(id: string, request?: GuardrailModelUpdate, requestOptions?: GuardrailModelsClient.RequestOptions): HttpResponsePromise<void>;
12038
12175
  private __updateGuardrailModel;
12039
12176
  /**
12040
12177
  * Find a guardrail model's training runs, newest first
@@ -12367,7 +12504,7 @@ declare class InsightsViewsClient {
12367
12504
  deleteInsightsViewsBatch(request: BatchDelete, requestOptions?: InsightsViewsClient.RequestOptions): HttpResponsePromise<void>;
12368
12505
  private __deleteInsightsViewsBatch;
12369
12506
  /**
12370
- * Runs the query saved on an Ollie chart widget of this insights view over the given date range and returns its rows. The query is read from the saved widget; the request carries no SQL. Returns 501 when Ollie or Custom Charts is not enabled for the workspace.
12507
+ * Runs the query saved on an Ollie chart widget of this insights view, or the query of the given input of the view version a view widget pins, over the given date range and returns its rows. The query is read from the saved widget; the request carries no SQL. Returns 501 when Ollie or Custom Charts is not enabled for the workspace.
12371
12508
  *
12372
12509
  * @param {string} insightsViewId
12373
12510
  * @param {string} widgetId
@@ -12502,6 +12639,16 @@ declare class LlmProviderKeyClient {
12502
12639
  */
12503
12640
  updateLlmProviderApiKey(id: string, request?: ProviderApiKeyUpdate, requestOptions?: LlmProviderKeyClient.RequestOptions): HttpResponsePromise<void>;
12504
12641
  private __updateLlmProviderApiKey;
12642
+ /**
12643
+ * Get the OpenRouter region the workspace's OpenRouter requests go to, from its OpenRouter provider's base_url or the server's default OpenRouter URL
12644
+ *
12645
+ * @param {LlmProviderKeyClient.RequestOptions} requestOptions - Request-specific configuration.
12646
+ *
12647
+ * @example
12648
+ * await client.llmProviderKey.getOpenRouterRegion()
12649
+ */
12650
+ getOpenRouterRegion(requestOptions?: LlmProviderKeyClient.RequestOptions): HttpResponsePromise<OpenRouterRegionResponse>;
12651
+ private __getOpenRouterRegion;
12505
12652
  /**
12506
12653
  * Runs the token fetch once, backend-side, and reports the token lifetime. The token itself is never returned. Send provider_id to test the stored config, auth_config to test submitted values, or both to resolve secret sentinels against the stored config.
12507
12654
  *
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {Ia}from'./chunk-AUXPUK5O.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-AUXPUK5O.js';Ia();
1
+ import {Ia}from'./chunk-6JVISNS2.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-6JVISNS2.js';Ia();
@@ -1 +1 @@
1
- import {Ca}from'./chunk-AUXPUK5O.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-AUXPUK5O.js';Ca();
1
+ import {Ca}from'./chunk-6JVISNS2.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-6JVISNS2.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.4.0",
4
+ "version": "2.4.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",