opik 2.2.92 → 2.2.93
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-4LFLLFDK.js +404 -0
- package/dist/cli.js +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +1 -1
- package/dist/{suite-X6X3ADY6.js → suite-S7UXHRSD.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-YTUJEARH.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -3041,6 +3041,19 @@ interface ScopedAnalyticsQueryRequest {
|
|
|
3041
3041
|
projectId?: string;
|
|
3042
3042
|
}
|
|
3043
3043
|
|
|
3044
|
+
/**
|
|
3045
|
+
* @example
|
|
3046
|
+
* {
|
|
3047
|
+
* workspaceIds: ["workspace_ids"]
|
|
3048
|
+
* }
|
|
3049
|
+
*/
|
|
3050
|
+
interface UsageProjectsRequest {
|
|
3051
|
+
workspaceIds: string[];
|
|
3052
|
+
projectIds?: string[];
|
|
3053
|
+
name?: string;
|
|
3054
|
+
limit?: number;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3044
3057
|
/**
|
|
3045
3058
|
* @example
|
|
3046
3059
|
* {
|
|
@@ -8376,6 +8389,10 @@ interface UsageByWorkspaceProjectUserResponse {
|
|
|
8376
8389
|
breakdown?: WorkspaceProjectUserCount[];
|
|
8377
8390
|
}
|
|
8378
8391
|
|
|
8392
|
+
interface UsageProjectsResponse {
|
|
8393
|
+
projects?: WorkspaceProjectName[];
|
|
8394
|
+
}
|
|
8395
|
+
|
|
8379
8396
|
interface UserDefinedMetricPythonCode {
|
|
8380
8397
|
metric: string;
|
|
8381
8398
|
arguments: Record<string, string>;
|
|
@@ -8563,9 +8580,16 @@ interface WorkspaceNameHolder {
|
|
|
8563
8580
|
workspaceName?: string;
|
|
8564
8581
|
}
|
|
8565
8582
|
|
|
8583
|
+
interface WorkspaceProjectName {
|
|
8584
|
+
workspaceId?: string;
|
|
8585
|
+
projectId?: string;
|
|
8586
|
+
name?: string;
|
|
8587
|
+
}
|
|
8588
|
+
|
|
8566
8589
|
interface WorkspaceProjectUserCount {
|
|
8567
8590
|
workspaceId?: string;
|
|
8568
8591
|
projectId?: string;
|
|
8592
|
+
projectName?: string;
|
|
8569
8593
|
user?: string;
|
|
8570
8594
|
count?: number;
|
|
8571
8595
|
}
|
|
@@ -12956,6 +12980,21 @@ declare namespace SystemUsageClient {
|
|
|
12956
12980
|
declare class SystemUsageClient {
|
|
12957
12981
|
protected readonly _options: NormalizedClientOptions<SystemUsageClient.Options>;
|
|
12958
12982
|
constructor(options?: SystemUsageClient.Options);
|
|
12983
|
+
/**
|
|
12984
|
+
* Find projects across the given workspaces, optionally narrowed by project ids or a case-insensitive name substring. Unknown or deleted projects are omitted.
|
|
12985
|
+
*
|
|
12986
|
+
* @param {OpikApi.UsageProjectsRequest} request
|
|
12987
|
+
* @param {SystemUsageClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
12988
|
+
*
|
|
12989
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
12990
|
+
*
|
|
12991
|
+
* @example
|
|
12992
|
+
* await client.systemUsage.findUsageProjects({
|
|
12993
|
+
* workspaceIds: ["workspace_ids"]
|
|
12994
|
+
* })
|
|
12995
|
+
*/
|
|
12996
|
+
findUsageProjects(request: UsageProjectsRequest, requestOptions?: SystemUsageClient.RequestOptions): HttpResponsePromise<UsageProjectsResponse>;
|
|
12997
|
+
private __findUsageProjects;
|
|
12959
12998
|
/**
|
|
12960
12999
|
* Get datasets information for BI events per user per workspace
|
|
12961
13000
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -3041,6 +3041,19 @@ interface ScopedAnalyticsQueryRequest {
|
|
|
3041
3041
|
projectId?: string;
|
|
3042
3042
|
}
|
|
3043
3043
|
|
|
3044
|
+
/**
|
|
3045
|
+
* @example
|
|
3046
|
+
* {
|
|
3047
|
+
* workspaceIds: ["workspace_ids"]
|
|
3048
|
+
* }
|
|
3049
|
+
*/
|
|
3050
|
+
interface UsageProjectsRequest {
|
|
3051
|
+
workspaceIds: string[];
|
|
3052
|
+
projectIds?: string[];
|
|
3053
|
+
name?: string;
|
|
3054
|
+
limit?: number;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3044
3057
|
/**
|
|
3045
3058
|
* @example
|
|
3046
3059
|
* {
|
|
@@ -8376,6 +8389,10 @@ interface UsageByWorkspaceProjectUserResponse {
|
|
|
8376
8389
|
breakdown?: WorkspaceProjectUserCount[];
|
|
8377
8390
|
}
|
|
8378
8391
|
|
|
8392
|
+
interface UsageProjectsResponse {
|
|
8393
|
+
projects?: WorkspaceProjectName[];
|
|
8394
|
+
}
|
|
8395
|
+
|
|
8379
8396
|
interface UserDefinedMetricPythonCode {
|
|
8380
8397
|
metric: string;
|
|
8381
8398
|
arguments: Record<string, string>;
|
|
@@ -8563,9 +8580,16 @@ interface WorkspaceNameHolder {
|
|
|
8563
8580
|
workspaceName?: string;
|
|
8564
8581
|
}
|
|
8565
8582
|
|
|
8583
|
+
interface WorkspaceProjectName {
|
|
8584
|
+
workspaceId?: string;
|
|
8585
|
+
projectId?: string;
|
|
8586
|
+
name?: string;
|
|
8587
|
+
}
|
|
8588
|
+
|
|
8566
8589
|
interface WorkspaceProjectUserCount {
|
|
8567
8590
|
workspaceId?: string;
|
|
8568
8591
|
projectId?: string;
|
|
8592
|
+
projectName?: string;
|
|
8569
8593
|
user?: string;
|
|
8570
8594
|
count?: number;
|
|
8571
8595
|
}
|
|
@@ -12956,6 +12980,21 @@ declare namespace SystemUsageClient {
|
|
|
12956
12980
|
declare class SystemUsageClient {
|
|
12957
12981
|
protected readonly _options: NormalizedClientOptions<SystemUsageClient.Options>;
|
|
12958
12982
|
constructor(options?: SystemUsageClient.Options);
|
|
12983
|
+
/**
|
|
12984
|
+
* Find projects across the given workspaces, optionally narrowed by project ids or a case-insensitive name substring. Unknown or deleted projects are omitted.
|
|
12985
|
+
*
|
|
12986
|
+
* @param {OpikApi.UsageProjectsRequest} request
|
|
12987
|
+
* @param {SystemUsageClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
12988
|
+
*
|
|
12989
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
12990
|
+
*
|
|
12991
|
+
* @example
|
|
12992
|
+
* await client.systemUsage.findUsageProjects({
|
|
12993
|
+
* workspaceIds: ["workspace_ids"]
|
|
12994
|
+
* })
|
|
12995
|
+
*/
|
|
12996
|
+
findUsageProjects(request: UsageProjectsRequest, requestOptions?: SystemUsageClient.RequestOptions): HttpResponsePromise<UsageProjectsResponse>;
|
|
12997
|
+
private __findUsageProjects;
|
|
12959
12998
|
/**
|
|
12960
12999
|
* Get datasets information for BI events per user per workspace
|
|
12961
13000
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-4LFLLFDK.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-4LFLLFDK.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-4LFLLFDK.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-4LFLLFDK.js';Ca();
|