opik 2.0.23 → 2.0.25
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-CFMWKPCO.js +404 -0
- package/dist/index.cjs +35 -35
- package/dist/index.d.cts +50 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +1 -1
- package/dist/{suite-H7TYFEAJ.js → suite-PI3VIRSS.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-YM2RDU5X.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -1758,6 +1758,15 @@ interface GetPromptsByProjectRequest {
|
|
|
1758
1758
|
filters?: string;
|
|
1759
1759
|
}
|
|
1760
1760
|
|
|
1761
|
+
/**
|
|
1762
|
+
* @example
|
|
1763
|
+
* {}
|
|
1764
|
+
*/
|
|
1765
|
+
interface GetRecentActivityRequest {
|
|
1766
|
+
page?: number;
|
|
1767
|
+
size?: number;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1761
1770
|
/**
|
|
1762
1771
|
* @example
|
|
1763
1772
|
* {
|
|
@@ -6117,6 +6126,32 @@ declare const ProviderApiKeyPublicProvider: {
|
|
|
6117
6126
|
};
|
|
6118
6127
|
type ProviderApiKeyPublicProvider = (typeof ProviderApiKeyPublicProvider)[keyof typeof ProviderApiKeyPublicProvider];
|
|
6119
6128
|
|
|
6129
|
+
interface RecentActivityItemPublic {
|
|
6130
|
+
type?: RecentActivityItemPublicType;
|
|
6131
|
+
id?: string;
|
|
6132
|
+
name?: string;
|
|
6133
|
+
resourceId?: string;
|
|
6134
|
+
createdBy?: string;
|
|
6135
|
+
createdAt?: Date;
|
|
6136
|
+
}
|
|
6137
|
+
|
|
6138
|
+
declare const RecentActivityItemPublicType: {
|
|
6139
|
+
readonly Experiment: "experiment";
|
|
6140
|
+
readonly DatasetVersion: "dataset_version";
|
|
6141
|
+
readonly TestSuiteVersion: "test_suite_version";
|
|
6142
|
+
readonly AlertEvent: "alert_event";
|
|
6143
|
+
readonly Optimization: "optimization";
|
|
6144
|
+
readonly AgentConfigVersion: "agent_config_version";
|
|
6145
|
+
};
|
|
6146
|
+
type RecentActivityItemPublicType = (typeof RecentActivityItemPublicType)[keyof typeof RecentActivityItemPublicType];
|
|
6147
|
+
|
|
6148
|
+
interface RecentActivityPagePublic {
|
|
6149
|
+
page?: number;
|
|
6150
|
+
size?: number;
|
|
6151
|
+
total?: number;
|
|
6152
|
+
content?: RecentActivityItemPublic[];
|
|
6153
|
+
}
|
|
6154
|
+
|
|
6120
6155
|
interface ResponseFormat {
|
|
6121
6156
|
type?: ResponseFormatType;
|
|
6122
6157
|
jsonSchema?: JsonSchema;
|
|
@@ -10063,6 +10098,21 @@ declare class ProjectsClient {
|
|
|
10063
10098
|
*/
|
|
10064
10099
|
retrieveProject(request: ProjectRetrieveDetailed, requestOptions?: ProjectsClient.RequestOptions): HttpResponsePromise<ProjectDetailed>;
|
|
10065
10100
|
private __retrieveProject;
|
|
10101
|
+
/**
|
|
10102
|
+
* Returns the most recent activity items across all entity types for a project, sorted by date descending.
|
|
10103
|
+
*
|
|
10104
|
+
* @param {string} projectId
|
|
10105
|
+
* @param {OpikApi.GetRecentActivityRequest} request
|
|
10106
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
10107
|
+
*
|
|
10108
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
10109
|
+
* @throws {@link OpikApi.InternalServerError}
|
|
10110
|
+
*
|
|
10111
|
+
* @example
|
|
10112
|
+
* await client.projects.getRecentActivity("projectId")
|
|
10113
|
+
*/
|
|
10114
|
+
getRecentActivity(projectId: string, request?: GetRecentActivityRequest, requestOptions?: ProjectsClient.RequestOptions): HttpResponsePromise<RecentActivityPagePublic>;
|
|
10115
|
+
private __getRecentActivity;
|
|
10066
10116
|
}
|
|
10067
10117
|
|
|
10068
10118
|
declare namespace PromptsClient {
|
package/dist/index.d.ts
CHANGED
|
@@ -1758,6 +1758,15 @@ interface GetPromptsByProjectRequest {
|
|
|
1758
1758
|
filters?: string;
|
|
1759
1759
|
}
|
|
1760
1760
|
|
|
1761
|
+
/**
|
|
1762
|
+
* @example
|
|
1763
|
+
* {}
|
|
1764
|
+
*/
|
|
1765
|
+
interface GetRecentActivityRequest {
|
|
1766
|
+
page?: number;
|
|
1767
|
+
size?: number;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1761
1770
|
/**
|
|
1762
1771
|
* @example
|
|
1763
1772
|
* {
|
|
@@ -6117,6 +6126,32 @@ declare const ProviderApiKeyPublicProvider: {
|
|
|
6117
6126
|
};
|
|
6118
6127
|
type ProviderApiKeyPublicProvider = (typeof ProviderApiKeyPublicProvider)[keyof typeof ProviderApiKeyPublicProvider];
|
|
6119
6128
|
|
|
6129
|
+
interface RecentActivityItemPublic {
|
|
6130
|
+
type?: RecentActivityItemPublicType;
|
|
6131
|
+
id?: string;
|
|
6132
|
+
name?: string;
|
|
6133
|
+
resourceId?: string;
|
|
6134
|
+
createdBy?: string;
|
|
6135
|
+
createdAt?: Date;
|
|
6136
|
+
}
|
|
6137
|
+
|
|
6138
|
+
declare const RecentActivityItemPublicType: {
|
|
6139
|
+
readonly Experiment: "experiment";
|
|
6140
|
+
readonly DatasetVersion: "dataset_version";
|
|
6141
|
+
readonly TestSuiteVersion: "test_suite_version";
|
|
6142
|
+
readonly AlertEvent: "alert_event";
|
|
6143
|
+
readonly Optimization: "optimization";
|
|
6144
|
+
readonly AgentConfigVersion: "agent_config_version";
|
|
6145
|
+
};
|
|
6146
|
+
type RecentActivityItemPublicType = (typeof RecentActivityItemPublicType)[keyof typeof RecentActivityItemPublicType];
|
|
6147
|
+
|
|
6148
|
+
interface RecentActivityPagePublic {
|
|
6149
|
+
page?: number;
|
|
6150
|
+
size?: number;
|
|
6151
|
+
total?: number;
|
|
6152
|
+
content?: RecentActivityItemPublic[];
|
|
6153
|
+
}
|
|
6154
|
+
|
|
6120
6155
|
interface ResponseFormat {
|
|
6121
6156
|
type?: ResponseFormatType;
|
|
6122
6157
|
jsonSchema?: JsonSchema;
|
|
@@ -10063,6 +10098,21 @@ declare class ProjectsClient {
|
|
|
10063
10098
|
*/
|
|
10064
10099
|
retrieveProject(request: ProjectRetrieveDetailed, requestOptions?: ProjectsClient.RequestOptions): HttpResponsePromise<ProjectDetailed>;
|
|
10065
10100
|
private __retrieveProject;
|
|
10101
|
+
/**
|
|
10102
|
+
* Returns the most recent activity items across all entity types for a project, sorted by date descending.
|
|
10103
|
+
*
|
|
10104
|
+
* @param {string} projectId
|
|
10105
|
+
* @param {OpikApi.GetRecentActivityRequest} request
|
|
10106
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
10107
|
+
*
|
|
10108
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
10109
|
+
* @throws {@link OpikApi.InternalServerError}
|
|
10110
|
+
*
|
|
10111
|
+
* @example
|
|
10112
|
+
* await client.projects.getRecentActivity("projectId")
|
|
10113
|
+
*/
|
|
10114
|
+
getRecentActivity(projectId: string, request?: GetRecentActivityRequest, requestOptions?: ProjectsClient.RequestOptions): HttpResponsePromise<RecentActivityPagePublic>;
|
|
10115
|
+
private __getRecentActivity;
|
|
10066
10116
|
}
|
|
10067
10117
|
|
|
10068
10118
|
declare namespace PromptsClient {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ea}from'./chunk-
|
|
1
|
+
import {Ea}from'./chunk-CFMWKPCO.js';export{ra as AgentTaskCompletionJudge,qa as AgentToolCorrectnessJudge,ea as AnswerRelevance,aa as BaseLLMJudgeMetric,B as BaseMetric,C as BaseSuiteEvaluator,p as ChatPrompt,ta as ComplianceRiskJudge,i as ConfigMismatchError,h as ConfigNotFoundError,Z as Contains,y as DEFAULT_EXECUTION_POLICY,j as Dataset,f as DatasetVersion,g as DatasetVersionNotFoundError,la as DemographicBiasJudge,ja as DialogueHelpfulnessJudge,Y as ExactMatch,fa as GEval,ga as GEvalPreset,na as GenderBiasJudge,da as Hallucination,$ as IsJson,P as LLMJudge,G as ModelConfigurationError,E as ModelError,F as ModelGenerationError,ba as Moderation,Ba as OPIK_PARENT_SPAN_ID_HEADER,Aa as OPIK_TRACE_ID_HEADER,za as Opik,D as OpikBaseModel,q as OpikQueryLanguage,d as OpikSpanType,ma as PoliticalBiasJudge,o as Prompt,k as PromptType,sa as PromptUncertaintyJudge,ka as QARelevanceJudge,_ as RegexMatch,pa as RegionalBiasJudge,oa as ReligiousBiasJudge,O as ResponseSchema,M as SYSTEM_PROMPT,ia as SummarizationCoherenceJudge,ha as SummarizationConsistencyJudge,xa as TestSuite,z as TestSuiteResult,s as ThreadsAnnotationQueue,r as TracesAnnotationQueue,N as USER_PROMPT_TEMPLATE,ca as Usefulness,I as VercelAIChatModel,v as activateRunner,t as agentConfigContext,A as buildSuiteResult,J as createModel,K as createModelFromInstance,R as deserializeEvaluators,H as detectProvider,c as disableLogger,W as evaluate,X as evaluatePrompt,U as evaluateTestSuite,u as flushAll,e as generateId,Ca as getDistributedTraceHeaders,l as getGlobalClient,w as getTrackContext,a as logger,n as resetGlobalClient,ua as resolveEvaluators,S as resolveExecutionPolicy,T as resolveItemExecutionPolicy,L as resolveModel,V as runTests,Q as serializeEvaluators,m as setGlobalClient,b as setLoggerLevel,x as track,va as validateEvaluators,wa as validateExecutionPolicy,Da as z}from'./chunk-CFMWKPCO.js';Ea();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {ya}from'./chunk-
|
|
1
|
+
import {ya}from'./chunk-CFMWKPCO.js';export{y as DEFAULT_EXECUTION_POLICY,xa as TestSuite,z as TestSuiteResult,A as buildSuiteResult,R as deserializeEvaluators,U as evaluateTestSuite,S as resolveExecutionPolicy,T as resolveItemExecutionPolicy,V as runTests,Q as serializeEvaluators}from'./chunk-CFMWKPCO.js';ya();
|