opik 2.0.77 → 2.1.1
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-SX7GKKBP.js → chunk-I5ADVXKW.js} +34 -34
- package/dist/index.cjs +35 -35
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1 -1
- package/dist/{suite-UZCSOVKO.js → suite-MVH7DYD2.js} +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7944,6 +7944,10 @@ interface Usage {
|
|
|
7944
7944
|
completionTokensDetails?: CompletionTokensDetails;
|
|
7945
7945
|
}
|
|
7946
7946
|
|
|
7947
|
+
interface UsageByWorkspaceProjectUserResponse {
|
|
7948
|
+
breakdown?: WorkspaceProjectUserCount[];
|
|
7949
|
+
}
|
|
7950
|
+
|
|
7947
7951
|
interface UserDefinedMetricPythonCode {
|
|
7948
7952
|
metric: string;
|
|
7949
7953
|
arguments: Record<string, string>;
|
|
@@ -8121,6 +8125,13 @@ interface WorkspaceNameHolder {
|
|
|
8121
8125
|
workspaceName?: string;
|
|
8122
8126
|
}
|
|
8123
8127
|
|
|
8128
|
+
interface WorkspaceProjectUserCount {
|
|
8129
|
+
workspaceId?: string;
|
|
8130
|
+
projectId?: string;
|
|
8131
|
+
user?: string;
|
|
8132
|
+
count?: number;
|
|
8133
|
+
}
|
|
8134
|
+
|
|
8124
8135
|
interface WorkspaceSpansCount {
|
|
8125
8136
|
workspace?: string;
|
|
8126
8137
|
spanCount?: number;
|
|
@@ -12522,6 +12533,16 @@ declare class SystemUsageClient {
|
|
|
12522
12533
|
*/
|
|
12523
12534
|
getSpansBiInfo(requestOptions?: SystemUsageClient.RequestOptions): HttpResponsePromise<BiInformationResponse>;
|
|
12524
12535
|
private __getSpansBiInfo;
|
|
12536
|
+
/**
|
|
12537
|
+
* Get spans count on previous day grouped by workspace, project and user
|
|
12538
|
+
*
|
|
12539
|
+
* @param {SystemUsageClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
12540
|
+
*
|
|
12541
|
+
* @example
|
|
12542
|
+
* await client.systemUsage.getSpansCountBreakdownForWorkspaces()
|
|
12543
|
+
*/
|
|
12544
|
+
getSpansCountBreakdownForWorkspaces(requestOptions?: SystemUsageClient.RequestOptions): HttpResponsePromise<UsageByWorkspaceProjectUserResponse>;
|
|
12545
|
+
private __getSpansCountBreakdownForWorkspaces;
|
|
12525
12546
|
/**
|
|
12526
12547
|
* Get spans count on previous day for all available workspaces
|
|
12527
12548
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -7944,6 +7944,10 @@ interface Usage {
|
|
|
7944
7944
|
completionTokensDetails?: CompletionTokensDetails;
|
|
7945
7945
|
}
|
|
7946
7946
|
|
|
7947
|
+
interface UsageByWorkspaceProjectUserResponse {
|
|
7948
|
+
breakdown?: WorkspaceProjectUserCount[];
|
|
7949
|
+
}
|
|
7950
|
+
|
|
7947
7951
|
interface UserDefinedMetricPythonCode {
|
|
7948
7952
|
metric: string;
|
|
7949
7953
|
arguments: Record<string, string>;
|
|
@@ -8121,6 +8125,13 @@ interface WorkspaceNameHolder {
|
|
|
8121
8125
|
workspaceName?: string;
|
|
8122
8126
|
}
|
|
8123
8127
|
|
|
8128
|
+
interface WorkspaceProjectUserCount {
|
|
8129
|
+
workspaceId?: string;
|
|
8130
|
+
projectId?: string;
|
|
8131
|
+
user?: string;
|
|
8132
|
+
count?: number;
|
|
8133
|
+
}
|
|
8134
|
+
|
|
8124
8135
|
interface WorkspaceSpansCount {
|
|
8125
8136
|
workspace?: string;
|
|
8126
8137
|
spanCount?: number;
|
|
@@ -12522,6 +12533,16 @@ declare class SystemUsageClient {
|
|
|
12522
12533
|
*/
|
|
12523
12534
|
getSpansBiInfo(requestOptions?: SystemUsageClient.RequestOptions): HttpResponsePromise<BiInformationResponse>;
|
|
12524
12535
|
private __getSpansBiInfo;
|
|
12536
|
+
/**
|
|
12537
|
+
* Get spans count on previous day grouped by workspace, project and user
|
|
12538
|
+
*
|
|
12539
|
+
* @param {SystemUsageClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
12540
|
+
*
|
|
12541
|
+
* @example
|
|
12542
|
+
* await client.systemUsage.getSpansCountBreakdownForWorkspaces()
|
|
12543
|
+
*/
|
|
12544
|
+
getSpansCountBreakdownForWorkspaces(requestOptions?: SystemUsageClient.RequestOptions): HttpResponsePromise<UsageByWorkspaceProjectUserResponse>;
|
|
12545
|
+
private __getSpansCountBreakdownForWorkspaces;
|
|
12525
12546
|
/**
|
|
12526
12547
|
* Get spans count on previous day for all available workspaces
|
|
12527
12548
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-I5ADVXKW.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-I5ADVXKW.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-I5ADVXKW.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-I5ADVXKW.js';Ca();
|