opik 2.3.6 → 2.3.8
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/{chunk-WVAVDULW.js → chunk-IP4PNM2L.js} +16 -16
- package/dist/cli.js +1 -1
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts +54 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +1 -1
- package/dist/{suite-PHLQM2IP.js → suite-NYOJPSTW.js} +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3312,6 +3312,27 @@ interface ResetProjectTopicsRequest {
|
|
|
3312
3312
|
workspaceId: string;
|
|
3313
3313
|
}
|
|
3314
3314
|
|
|
3315
|
+
/**
|
|
3316
|
+
* @example
|
|
3317
|
+
* {
|
|
3318
|
+
* workspaceId: "workspace_id"
|
|
3319
|
+
* }
|
|
3320
|
+
*/
|
|
3321
|
+
interface ResetWorkspaceTopicsRequest {
|
|
3322
|
+
workspaceId: string;
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
/**
|
|
3326
|
+
* @example
|
|
3327
|
+
* {
|
|
3328
|
+
* workspaceId: "workspace_id"
|
|
3329
|
+
* }
|
|
3330
|
+
*/
|
|
3331
|
+
interface RunProjectTopicsNightRequest {
|
|
3332
|
+
workspaceId: string;
|
|
3333
|
+
night?: string;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3315
3336
|
/**
|
|
3316
3337
|
* @example
|
|
3317
3338
|
* {
|
|
@@ -14563,6 +14584,21 @@ declare class TopicsClient {
|
|
|
14563
14584
|
*/
|
|
14564
14585
|
resetProjectTopics(projectId: string, request: ResetProjectTopicsRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14565
14586
|
private __resetProjectTopics;
|
|
14587
|
+
/**
|
|
14588
|
+
* Resets, as the project reset does, every project of the workspace that has a saved list, topics.storage.deleteBatchSize projects per transaction. A project with a run in flight keeps its list and is listed in the answer. The workspace is opted in to topics at stage build or later.
|
|
14589
|
+
*
|
|
14590
|
+
* @param {OpikApi.ResetWorkspaceTopicsRequest} request
|
|
14591
|
+
* @param {TopicsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14592
|
+
*
|
|
14593
|
+
* @throws {@link OpikApi.ConflictError}
|
|
14594
|
+
*
|
|
14595
|
+
* @example
|
|
14596
|
+
* await client.topics.resetWorkspaceTopics({
|
|
14597
|
+
* workspaceId: "workspace_id"
|
|
14598
|
+
* })
|
|
14599
|
+
*/
|
|
14600
|
+
resetWorkspaceTopics(request: ResetWorkspaceTopicsRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14601
|
+
private __resetWorkspaceTopics;
|
|
14566
14602
|
/**
|
|
14567
14603
|
* Queues the project's discovery run and returns its run id; any pod runs it. 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 window ends at the start of the night date (UTC; default today, at most tomorrow, at least the vectors backfill window ago). The workspace is opted in to topics at stage build or later, the window holds topics.run.minVectors vectors of the project, and the project has no list and no run in flight. The project's vectors backfill must have drained: ignore_backfill=true builds it from the vectors it has so far. A failed discovery run's retry wait and topics.runs.maxInFlight do not apply.
|
|
14568
14604
|
*
|
|
@@ -14581,6 +14617,24 @@ declare class TopicsClient {
|
|
|
14581
14617
|
*/
|
|
14582
14618
|
runProjectTopics(projectId: string, request: RunProjectTopicsRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14583
14619
|
private __runProjectTopics;
|
|
14620
|
+
/**
|
|
14621
|
+
* 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.
|
|
14622
|
+
*
|
|
14623
|
+
* @param {string} projectId
|
|
14624
|
+
* @param {OpikApi.RunProjectTopicsNightRequest} request
|
|
14625
|
+
* @param {TopicsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14626
|
+
*
|
|
14627
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
14628
|
+
* @throws {@link OpikApi.ConflictError}
|
|
14629
|
+
* @throws {@link OpikApi.ServiceUnavailableError}
|
|
14630
|
+
*
|
|
14631
|
+
* @example
|
|
14632
|
+
* await client.topics.runProjectTopicsNight("projectId", {
|
|
14633
|
+
* workspaceId: "workspace_id"
|
|
14634
|
+
* })
|
|
14635
|
+
*/
|
|
14636
|
+
runProjectTopicsNight(projectId: string, request: RunProjectTopicsNightRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14637
|
+
private __runProjectTopicsNight;
|
|
14584
14638
|
/**
|
|
14585
14639
|
* 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
14640
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -3312,6 +3312,27 @@ interface ResetProjectTopicsRequest {
|
|
|
3312
3312
|
workspaceId: string;
|
|
3313
3313
|
}
|
|
3314
3314
|
|
|
3315
|
+
/**
|
|
3316
|
+
* @example
|
|
3317
|
+
* {
|
|
3318
|
+
* workspaceId: "workspace_id"
|
|
3319
|
+
* }
|
|
3320
|
+
*/
|
|
3321
|
+
interface ResetWorkspaceTopicsRequest {
|
|
3322
|
+
workspaceId: string;
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
/**
|
|
3326
|
+
* @example
|
|
3327
|
+
* {
|
|
3328
|
+
* workspaceId: "workspace_id"
|
|
3329
|
+
* }
|
|
3330
|
+
*/
|
|
3331
|
+
interface RunProjectTopicsNightRequest {
|
|
3332
|
+
workspaceId: string;
|
|
3333
|
+
night?: string;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3315
3336
|
/**
|
|
3316
3337
|
* @example
|
|
3317
3338
|
* {
|
|
@@ -14563,6 +14584,21 @@ declare class TopicsClient {
|
|
|
14563
14584
|
*/
|
|
14564
14585
|
resetProjectTopics(projectId: string, request: ResetProjectTopicsRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14565
14586
|
private __resetProjectTopics;
|
|
14587
|
+
/**
|
|
14588
|
+
* Resets, as the project reset does, every project of the workspace that has a saved list, topics.storage.deleteBatchSize projects per transaction. A project with a run in flight keeps its list and is listed in the answer. The workspace is opted in to topics at stage build or later.
|
|
14589
|
+
*
|
|
14590
|
+
* @param {OpikApi.ResetWorkspaceTopicsRequest} request
|
|
14591
|
+
* @param {TopicsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14592
|
+
*
|
|
14593
|
+
* @throws {@link OpikApi.ConflictError}
|
|
14594
|
+
*
|
|
14595
|
+
* @example
|
|
14596
|
+
* await client.topics.resetWorkspaceTopics({
|
|
14597
|
+
* workspaceId: "workspace_id"
|
|
14598
|
+
* })
|
|
14599
|
+
*/
|
|
14600
|
+
resetWorkspaceTopics(request: ResetWorkspaceTopicsRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14601
|
+
private __resetWorkspaceTopics;
|
|
14566
14602
|
/**
|
|
14567
14603
|
* Queues the project's discovery run and returns its run id; any pod runs it. 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 window ends at the start of the night date (UTC; default today, at most tomorrow, at least the vectors backfill window ago). The workspace is opted in to topics at stage build or later, the window holds topics.run.minVectors vectors of the project, and the project has no list and no run in flight. The project's vectors backfill must have drained: ignore_backfill=true builds it from the vectors it has so far. A failed discovery run's retry wait and topics.runs.maxInFlight do not apply.
|
|
14568
14604
|
*
|
|
@@ -14581,6 +14617,24 @@ declare class TopicsClient {
|
|
|
14581
14617
|
*/
|
|
14582
14618
|
runProjectTopics(projectId: string, request: RunProjectTopicsRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14583
14619
|
private __runProjectTopics;
|
|
14620
|
+
/**
|
|
14621
|
+
* 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.
|
|
14622
|
+
*
|
|
14623
|
+
* @param {string} projectId
|
|
14624
|
+
* @param {OpikApi.RunProjectTopicsNightRequest} request
|
|
14625
|
+
* @param {TopicsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
14626
|
+
*
|
|
14627
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
14628
|
+
* @throws {@link OpikApi.ConflictError}
|
|
14629
|
+
* @throws {@link OpikApi.ServiceUnavailableError}
|
|
14630
|
+
*
|
|
14631
|
+
* @example
|
|
14632
|
+
* await client.topics.runProjectTopicsNight("projectId", {
|
|
14633
|
+
* workspaceId: "workspace_id"
|
|
14634
|
+
* })
|
|
14635
|
+
*/
|
|
14636
|
+
runProjectTopicsNight(projectId: string, request: RunProjectTopicsNightRequest, requestOptions?: TopicsClient.RequestOptions): HttpResponsePromise<void>;
|
|
14637
|
+
private __runProjectTopicsNight;
|
|
14584
14638
|
/**
|
|
14585
14639
|
* 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
14640
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-IP4PNM2L.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-IP4PNM2L.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-IP4PNM2L.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-IP4PNM2L.js';Ca();
|