opik 2.3.5 → 2.3.7

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
@@ -3312,6 +3312,17 @@ interface ResetProjectTopicsRequest {
3312
3312
  workspaceId: string;
3313
3313
  }
3314
3314
 
3315
+ /**
3316
+ * @example
3317
+ * {
3318
+ * workspaceId: "workspace_id"
3319
+ * }
3320
+ */
3321
+ interface RunProjectTopicsNightRequest {
3322
+ workspaceId: string;
3323
+ night?: string;
3324
+ }
3325
+
3315
3326
  /**
3316
3327
  * @example
3317
3328
  * {
@@ -14581,6 +14592,24 @@ declare class TopicsClient {
14581
14592
  */
14582
14593
  runProjectTopics(projectId: string, request: RunProjectTopicsRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
14583
14594
  private __runProjectTopics;
14595
+ /**
14596
+ * Queues the project's nightly update for the night date (UTC; default today, at most tomorrow, at least the vectors backfill window ago) and returns its run id; any pod runs it. Its window ends at the night's start. The run's outcome is on the project's topic_projects row while it is the project's latest run, and in the run's logs. The workspace is opted in to topics at stage nightly or later, the project has a list whose window ends before the night, its window holds topics.run.minVectors vectors, and it has no run in flight. topics.runs.maxInFlight and the night's budget do not apply, and the project's night fields are not written.
14597
+ *
14598
+ * @param {string} projectId
14599
+ * @param {OpikApi.RunProjectTopicsNightRequest} request
14600
+ * @param {TopicsClient.RequestOptions} requestOptions - Request-specific configuration.
14601
+ *
14602
+ * @throws {@link OpikApi.BadRequestError}
14603
+ * @throws {@link OpikApi.ConflictError}
14604
+ * @throws {@link OpikApi.ServiceUnavailableError}
14605
+ *
14606
+ * @example
14607
+ * await client.topics.runProjectTopicsNight("projectId", {
14608
+ * workspaceId: "workspace_id"
14609
+ * })
14610
+ */
14611
+ runProjectTopicsNight(projectId: string, request: RunProjectTopicsNightRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
14612
+ private __runProjectTopicsNight;
14584
14613
  /**
14585
14614
  * The project's topics over the window, the last topics.run.windowDays UTC days (default 30), today included: per topic its count, share, rank and a daily series, plus Other's daily series. Counts can be up to 5 minutes old. status is disabled when the workspace is not opted in to topics, collecting while the project has no topics yet, too_large when a ClickHouse read hit a rows, bytes or memory guard (a retry answers the same, so do not retry), and ready otherwise. Fields of other states are omitted.
14586
14615
  *
package/dist/index.d.ts CHANGED
@@ -3312,6 +3312,17 @@ interface ResetProjectTopicsRequest {
3312
3312
  workspaceId: string;
3313
3313
  }
3314
3314
 
3315
+ /**
3316
+ * @example
3317
+ * {
3318
+ * workspaceId: "workspace_id"
3319
+ * }
3320
+ */
3321
+ interface RunProjectTopicsNightRequest {
3322
+ workspaceId: string;
3323
+ night?: string;
3324
+ }
3325
+
3315
3326
  /**
3316
3327
  * @example
3317
3328
  * {
@@ -14581,6 +14592,24 @@ declare class TopicsClient {
14581
14592
  */
14582
14593
  runProjectTopics(projectId: string, request: RunProjectTopicsRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
14583
14594
  private __runProjectTopics;
14595
+ /**
14596
+ * Queues the project's nightly update for the night date (UTC; default today, at most tomorrow, at least the vectors backfill window ago) and returns its run id; any pod runs it. Its window ends at the night's start. The run's outcome is on the project's topic_projects row while it is the project's latest run, and in the run's logs. The workspace is opted in to topics at stage nightly or later, the project has a list whose window ends before the night, its window holds topics.run.minVectors vectors, and it has no run in flight. topics.runs.maxInFlight and the night's budget do not apply, and the project's night fields are not written.
14597
+ *
14598
+ * @param {string} projectId
14599
+ * @param {OpikApi.RunProjectTopicsNightRequest} request
14600
+ * @param {TopicsClient.RequestOptions} requestOptions - Request-specific configuration.
14601
+ *
14602
+ * @throws {@link OpikApi.BadRequestError}
14603
+ * @throws {@link OpikApi.ConflictError}
14604
+ * @throws {@link OpikApi.ServiceUnavailableError}
14605
+ *
14606
+ * @example
14607
+ * await client.topics.runProjectTopicsNight("projectId", {
14608
+ * workspaceId: "workspace_id"
14609
+ * })
14610
+ */
14611
+ runProjectTopicsNight(projectId: string, request: RunProjectTopicsNightRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
14612
+ private __runProjectTopicsNight;
14584
14613
  /**
14585
14614
  * The project's topics over the window, the last topics.run.windowDays UTC days (default 30), today included: per topic its count, share, rank and a daily series, plus Other's daily series. Counts can be up to 5 minutes old. status is disabled when the workspace is not opted in to topics, collecting while the project has no topics yet, too_large when a ClickHouse read hit a rows, bytes or memory guard (a retry answers the same, so do not retry), and ready otherwise. Fields of other states are omitted.
14586
14615
  *
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {Ia}from'./chunk-WVAVDULW.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-WVAVDULW.js';Ia();
1
+ import {Ia}from'./chunk-NY4X2FHP.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-NY4X2FHP.js';Ia();
@@ -1 +1 @@
1
- import {Ca}from'./chunk-WVAVDULW.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-WVAVDULW.js';Ca();
1
+ import {Ca}from'./chunk-NY4X2FHP.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-NY4X2FHP.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.3.5",
4
+ "version": "2.3.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",