opik 2.2.151 → 2.2.153

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
@@ -1193,7 +1193,7 @@ interface DatasetWrite {
1193
1193
  name: string;
1194
1194
  /** Project ID. Takes precedence over project_name when both are provided. */
1195
1195
  projectId?: string;
1196
- /** For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the dataset is created at workspace level. */
1196
+ /** For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the dataset is created in the Default Project. */
1197
1197
  projectName?: string;
1198
1198
  type?: DatasetWriteType;
1199
1199
  visibility?: DatasetWriteVisibility;
@@ -2469,7 +2469,7 @@ interface PromptWrite {
2469
2469
  name: string;
2470
2470
  /** Project ID. Takes precedence over project_name when both are provided. */
2471
2471
  projectId?: string;
2472
- /** For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the prompt is created at workspace level. */
2472
+ /** For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the prompt is created in the Default Project. */
2473
2473
  projectName?: string;
2474
2474
  description?: string;
2475
2475
  template?: string;
@@ -6535,8 +6535,8 @@ interface LlmAsJudgeMessage {
6535
6535
  role: LlmAsJudgeMessageRole;
6536
6536
  content?: string;
6537
6537
  contentArray?: LlmAsJudgeMessageContent[];
6538
- stringContent?: boolean;
6539
6538
  structuredContent?: boolean;
6539
+ stringContent?: boolean;
6540
6540
  }
6541
6541
 
6542
6542
  interface LlmAsJudgeMessageContent {
@@ -6567,8 +6567,8 @@ interface LlmAsJudgeMessagePublic {
6567
6567
  role: LlmAsJudgeMessagePublicRole;
6568
6568
  content?: string;
6569
6569
  contentArray?: LlmAsJudgeMessageContentPublic[];
6570
- stringContent?: boolean;
6571
6570
  structuredContent?: boolean;
6571
+ stringContent?: boolean;
6572
6572
  }
6573
6573
 
6574
6574
  declare const LlmAsJudgeMessagePublicRole: {
@@ -6593,8 +6593,8 @@ interface LlmAsJudgeMessageWrite {
6593
6593
  role: LlmAsJudgeMessageWriteRole;
6594
6594
  content?: string;
6595
6595
  contentArray?: LlmAsJudgeMessageContentWrite[];
6596
- stringContent?: boolean;
6597
6596
  structuredContent?: boolean;
6597
+ stringContent?: boolean;
6598
6598
  }
6599
6599
 
6600
6600
  declare const LlmAsJudgeMessageWriteRole: {
@@ -10043,6 +10043,8 @@ declare class AutomationRuleEvaluatorsClient {
10043
10043
  * @param {OpikApi.UpdateAutomationRuleEvaluatorRequest} request
10044
10044
  * @param {AutomationRuleEvaluatorsClient.RequestOptions} requestOptions - Request-specific configuration.
10045
10045
  *
10046
+ * @throws {@link OpikApi.ConflictError}
10047
+ *
10046
10048
  * @example
10047
10049
  * await client.automationRuleEvaluators.updateAutomationRuleEvaluator("id", {
10048
10050
  * body: {
package/dist/index.d.ts CHANGED
@@ -1193,7 +1193,7 @@ interface DatasetWrite {
1193
1193
  name: string;
1194
1194
  /** Project ID. Takes precedence over project_name when both are provided. */
1195
1195
  projectId?: string;
1196
- /** For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the dataset is created at workspace level. */
1196
+ /** For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the dataset is created in the Default Project. */
1197
1197
  projectName?: string;
1198
1198
  type?: DatasetWriteType;
1199
1199
  visibility?: DatasetWriteVisibility;
@@ -2469,7 +2469,7 @@ interface PromptWrite {
2469
2469
  name: string;
2470
2470
  /** Project ID. Takes precedence over project_name when both are provided. */
2471
2471
  projectId?: string;
2472
- /** For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the prompt is created at workspace level. */
2472
+ /** For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the prompt is created in the Default Project. */
2473
2473
  projectName?: string;
2474
2474
  description?: string;
2475
2475
  template?: string;
@@ -6535,8 +6535,8 @@ interface LlmAsJudgeMessage {
6535
6535
  role: LlmAsJudgeMessageRole;
6536
6536
  content?: string;
6537
6537
  contentArray?: LlmAsJudgeMessageContent[];
6538
- stringContent?: boolean;
6539
6538
  structuredContent?: boolean;
6539
+ stringContent?: boolean;
6540
6540
  }
6541
6541
 
6542
6542
  interface LlmAsJudgeMessageContent {
@@ -6567,8 +6567,8 @@ interface LlmAsJudgeMessagePublic {
6567
6567
  role: LlmAsJudgeMessagePublicRole;
6568
6568
  content?: string;
6569
6569
  contentArray?: LlmAsJudgeMessageContentPublic[];
6570
- stringContent?: boolean;
6571
6570
  structuredContent?: boolean;
6571
+ stringContent?: boolean;
6572
6572
  }
6573
6573
 
6574
6574
  declare const LlmAsJudgeMessagePublicRole: {
@@ -6593,8 +6593,8 @@ interface LlmAsJudgeMessageWrite {
6593
6593
  role: LlmAsJudgeMessageWriteRole;
6594
6594
  content?: string;
6595
6595
  contentArray?: LlmAsJudgeMessageContentWrite[];
6596
- stringContent?: boolean;
6597
6596
  structuredContent?: boolean;
6597
+ stringContent?: boolean;
6598
6598
  }
6599
6599
 
6600
6600
  declare const LlmAsJudgeMessageWriteRole: {
@@ -10043,6 +10043,8 @@ declare class AutomationRuleEvaluatorsClient {
10043
10043
  * @param {OpikApi.UpdateAutomationRuleEvaluatorRequest} request
10044
10044
  * @param {AutomationRuleEvaluatorsClient.RequestOptions} requestOptions - Request-specific configuration.
10045
10045
  *
10046
+ * @throws {@link OpikApi.ConflictError}
10047
+ *
10046
10048
  * @example
10047
10049
  * await client.automationRuleEvaluators.updateAutomationRuleEvaluator("id", {
10048
10050
  * body: {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {Ia}from'./chunk-Q3WEV5BO.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-Q3WEV5BO.js';Ia();
1
+ import {Ia}from'./chunk-PCLIUA23.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-PCLIUA23.js';Ia();
@@ -1 +1 @@
1
- import {Ca}from'./chunk-Q3WEV5BO.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-Q3WEV5BO.js';Ca();
1
+ import {Ca}from'./chunk-PCLIUA23.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-PCLIUA23.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.151",
4
+ "version": "2.2.153",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",