opik 2.2.16 → 2.2.18
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-22ZCUPOM.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1 -1
- package/dist/{suite-IOBGEE4F.js → suite-UEQYRVOT.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-KAL3ASWS.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -3413,6 +3413,14 @@ interface WorkspaceSpanMetricRequest {
|
|
|
3413
3413
|
startBeforeEnd?: boolean;
|
|
3414
3414
|
}
|
|
3415
3415
|
|
|
3416
|
+
/**
|
|
3417
|
+
* @example
|
|
3418
|
+
* {}
|
|
3419
|
+
*/
|
|
3420
|
+
interface WorkspaceTokenUsageNamesRequest {
|
|
3421
|
+
projectIds?: string[];
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3416
3424
|
declare const WorkspaceSpanMetricRequestInterval: {
|
|
3417
3425
|
readonly Hourly: "HOURLY";
|
|
3418
3426
|
readonly Daily: "DAILY";
|
|
@@ -13314,6 +13322,19 @@ declare class WorkspacesClient {
|
|
|
13314
13322
|
*/
|
|
13315
13323
|
getWorkspaceSpanMetric(request: WorkspaceSpanMetricRequest, requestOptions?: WorkspacesClient.RequestOptions): HttpResponsePromise<WorkspaceMetricResponse>;
|
|
13316
13324
|
private __getWorkspaceSpanMetric;
|
|
13325
|
+
/**
|
|
13326
|
+
* Gets the distinct span token usage key names aggregated across the workspace. When project_ids is empty, all projects in the workspace are included; otherwise only the given projects.
|
|
13327
|
+
*
|
|
13328
|
+
* @param {OpikApi.WorkspaceTokenUsageNamesRequest} request
|
|
13329
|
+
* @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
13330
|
+
*
|
|
13331
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
13332
|
+
*
|
|
13333
|
+
* @example
|
|
13334
|
+
* await client.workspaces.getWorkspaceTokenUsageNames()
|
|
13335
|
+
*/
|
|
13336
|
+
getWorkspaceTokenUsageNames(request?: WorkspaceTokenUsageNamesRequest, requestOptions?: WorkspacesClient.RequestOptions): HttpResponsePromise<TokenUsageNames>;
|
|
13337
|
+
private __getWorkspaceTokenUsageNames;
|
|
13317
13338
|
/**
|
|
13318
13339
|
* Determines whether the workspace should use Opik V1 (legacy workspace-scoped)
|
|
13319
13340
|
* or Opik V2 (project-first) navigation. The backend is the single authority for this
|
package/dist/index.d.ts
CHANGED
|
@@ -3413,6 +3413,14 @@ interface WorkspaceSpanMetricRequest {
|
|
|
3413
3413
|
startBeforeEnd?: boolean;
|
|
3414
3414
|
}
|
|
3415
3415
|
|
|
3416
|
+
/**
|
|
3417
|
+
* @example
|
|
3418
|
+
* {}
|
|
3419
|
+
*/
|
|
3420
|
+
interface WorkspaceTokenUsageNamesRequest {
|
|
3421
|
+
projectIds?: string[];
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3416
3424
|
declare const WorkspaceSpanMetricRequestInterval: {
|
|
3417
3425
|
readonly Hourly: "HOURLY";
|
|
3418
3426
|
readonly Daily: "DAILY";
|
|
@@ -13314,6 +13322,19 @@ declare class WorkspacesClient {
|
|
|
13314
13322
|
*/
|
|
13315
13323
|
getWorkspaceSpanMetric(request: WorkspaceSpanMetricRequest, requestOptions?: WorkspacesClient.RequestOptions): HttpResponsePromise<WorkspaceMetricResponse>;
|
|
13316
13324
|
private __getWorkspaceSpanMetric;
|
|
13325
|
+
/**
|
|
13326
|
+
* Gets the distinct span token usage key names aggregated across the workspace. When project_ids is empty, all projects in the workspace are included; otherwise only the given projects.
|
|
13327
|
+
*
|
|
13328
|
+
* @param {OpikApi.WorkspaceTokenUsageNamesRequest} request
|
|
13329
|
+
* @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
13330
|
+
*
|
|
13331
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
13332
|
+
*
|
|
13333
|
+
* @example
|
|
13334
|
+
* await client.workspaces.getWorkspaceTokenUsageNames()
|
|
13335
|
+
*/
|
|
13336
|
+
getWorkspaceTokenUsageNames(request?: WorkspaceTokenUsageNamesRequest, requestOptions?: WorkspacesClient.RequestOptions): HttpResponsePromise<TokenUsageNames>;
|
|
13337
|
+
private __getWorkspaceTokenUsageNames;
|
|
13317
13338
|
/**
|
|
13318
13339
|
* Determines whether the workspace should use Opik V1 (legacy workspace-scoped)
|
|
13319
13340
|
* or Opik V2 (project-first) navigation. The backend is the single authority for this
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-22ZCUPOM.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-22ZCUPOM.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-22ZCUPOM.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-22ZCUPOM.js';Ca();
|