opik 2.2.84 → 2.2.86

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
@@ -3028,6 +3028,19 @@ interface AnalyticsQueryRequest {
3028
3028
  query: string;
3029
3029
  }
3030
3030
 
3031
+ /**
3032
+ * @example
3033
+ * {
3034
+ * query: "query"
3035
+ * }
3036
+ */
3037
+ interface ScopedAnalyticsQueryRequest {
3038
+ /** Read-only ClickHouse SQL. Must return exactly one column named `result` produced via toJSONString(...) */
3039
+ query: string;
3040
+ /** Restrict query to this project. Omit to query the whole workspace. */
3041
+ projectId?: string;
3042
+ }
3043
+
3031
3044
  /**
3032
3045
  * @example
3033
3046
  * {
@@ -7387,6 +7400,7 @@ interface ServiceTogglesConfig {
7387
7400
  ollieEnabled: boolean;
7388
7401
  projectHomepageEnabled: boolean;
7389
7402
  onlineScoringTracingEnabled: boolean;
7403
+ annotationQueueAutomationEnabled: boolean;
7390
7404
  defaultPageSize?: number;
7391
7405
  }
7392
7406
 
@@ -12856,7 +12870,7 @@ declare namespace SystemAnalyticsQueriesClient {
12856
12870
  }
12857
12871
  }
12858
12872
  /**
12859
- * Internal endpoint to run Agent Insights free-form SQL
12873
+ * Internal endpoints to run free-form analytics SQL
12860
12874
  */
12861
12875
  declare class SystemAnalyticsQueriesClient {
12862
12876
  protected readonly _options: NormalizedClientOptions<SystemAnalyticsQueriesClient.Options>;
@@ -12879,6 +12893,23 @@ declare class SystemAnalyticsQueriesClient {
12879
12893
  */
12880
12894
  executeAnalyticsQuery(projectId: string, request: AnalyticsQueryRequest, requestOptions?: SystemAnalyticsQueriesClient.RequestOptions): HttpResponsePromise<AnalyticsQueryResponse>;
12881
12895
  private __executeAnalyticsQuery;
12896
+ /**
12897
+ * Runs read-only SQL bounded to the caller's workspace. Supply project_id to restrict traces, spans, feedback scores and trace threads to one project, or omit it to cover the whole workspace. Experiments, experiment items and dataset items always cover the whole workspace.
12898
+ *
12899
+ * @param {OpikApi.ScopedAnalyticsQueryRequest} request
12900
+ * @param {SystemAnalyticsQueriesClient.RequestOptions} requestOptions - Request-specific configuration.
12901
+ *
12902
+ * @throws {@link OpikApi.BadRequestError}
12903
+ * @throws {@link OpikApi.UnprocessableEntityError}
12904
+ * @throws {@link OpikApi.NotImplementedError}
12905
+ *
12906
+ * @example
12907
+ * await client.systemAnalyticsQueries.executeScopedAnalyticsQuery({
12908
+ * query: "query"
12909
+ * })
12910
+ */
12911
+ executeScopedAnalyticsQuery(request: ScopedAnalyticsQueryRequest, requestOptions?: SystemAnalyticsQueriesClient.RequestOptions): HttpResponsePromise<AnalyticsQueryResponse>;
12912
+ private __executeScopedAnalyticsQuery;
12882
12913
  }
12883
12914
 
12884
12915
  declare namespace SystemUsageClient {
package/dist/index.d.ts CHANGED
@@ -3028,6 +3028,19 @@ interface AnalyticsQueryRequest {
3028
3028
  query: string;
3029
3029
  }
3030
3030
 
3031
+ /**
3032
+ * @example
3033
+ * {
3034
+ * query: "query"
3035
+ * }
3036
+ */
3037
+ interface ScopedAnalyticsQueryRequest {
3038
+ /** Read-only ClickHouse SQL. Must return exactly one column named `result` produced via toJSONString(...) */
3039
+ query: string;
3040
+ /** Restrict query to this project. Omit to query the whole workspace. */
3041
+ projectId?: string;
3042
+ }
3043
+
3031
3044
  /**
3032
3045
  * @example
3033
3046
  * {
@@ -7387,6 +7400,7 @@ interface ServiceTogglesConfig {
7387
7400
  ollieEnabled: boolean;
7388
7401
  projectHomepageEnabled: boolean;
7389
7402
  onlineScoringTracingEnabled: boolean;
7403
+ annotationQueueAutomationEnabled: boolean;
7390
7404
  defaultPageSize?: number;
7391
7405
  }
7392
7406
 
@@ -12856,7 +12870,7 @@ declare namespace SystemAnalyticsQueriesClient {
12856
12870
  }
12857
12871
  }
12858
12872
  /**
12859
- * Internal endpoint to run Agent Insights free-form SQL
12873
+ * Internal endpoints to run free-form analytics SQL
12860
12874
  */
12861
12875
  declare class SystemAnalyticsQueriesClient {
12862
12876
  protected readonly _options: NormalizedClientOptions<SystemAnalyticsQueriesClient.Options>;
@@ -12879,6 +12893,23 @@ declare class SystemAnalyticsQueriesClient {
12879
12893
  */
12880
12894
  executeAnalyticsQuery(projectId: string, request: AnalyticsQueryRequest, requestOptions?: SystemAnalyticsQueriesClient.RequestOptions): HttpResponsePromise<AnalyticsQueryResponse>;
12881
12895
  private __executeAnalyticsQuery;
12896
+ /**
12897
+ * Runs read-only SQL bounded to the caller's workspace. Supply project_id to restrict traces, spans, feedback scores and trace threads to one project, or omit it to cover the whole workspace. Experiments, experiment items and dataset items always cover the whole workspace.
12898
+ *
12899
+ * @param {OpikApi.ScopedAnalyticsQueryRequest} request
12900
+ * @param {SystemAnalyticsQueriesClient.RequestOptions} requestOptions - Request-specific configuration.
12901
+ *
12902
+ * @throws {@link OpikApi.BadRequestError}
12903
+ * @throws {@link OpikApi.UnprocessableEntityError}
12904
+ * @throws {@link OpikApi.NotImplementedError}
12905
+ *
12906
+ * @example
12907
+ * await client.systemAnalyticsQueries.executeScopedAnalyticsQuery({
12908
+ * query: "query"
12909
+ * })
12910
+ */
12911
+ executeScopedAnalyticsQuery(request: ScopedAnalyticsQueryRequest, requestOptions?: SystemAnalyticsQueriesClient.RequestOptions): HttpResponsePromise<AnalyticsQueryResponse>;
12912
+ private __executeScopedAnalyticsQuery;
12882
12913
  }
12883
12914
 
12884
12915
  declare namespace SystemUsageClient {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {Ia}from'./chunk-YHNZ4SWJ.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-YHNZ4SWJ.js';Ia();
1
+ import {Ia}from'./chunk-HOKTWC52.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-HOKTWC52.js';Ia();
@@ -1 +1 @@
1
- import {Ca}from'./chunk-YHNZ4SWJ.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-YHNZ4SWJ.js';Ca();
1
+ import {Ca}from'./chunk-HOKTWC52.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-HOKTWC52.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.84",
4
+ "version": "2.2.86",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",