opik 2.0.41 → 2.0.43
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-7EDVDI2X.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +30 -2
- package/dist/index.d.ts +30 -2
- package/dist/index.js +1 -1
- package/dist/{suite-7A4H75A5.js → suite-M3TE5GVR.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-SINZQROK.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -1941,6 +1941,12 @@ interface GetPromptsRequest {
|
|
|
1941
1941
|
*/
|
|
1942
1942
|
type GetPromptVersionByIdRequest = {};
|
|
1943
1943
|
|
|
1944
|
+
/**
|
|
1945
|
+
* @example
|
|
1946
|
+
* {}
|
|
1947
|
+
*/
|
|
1948
|
+
type GetPromptVersionByNumberRequest = {};
|
|
1949
|
+
|
|
1944
1950
|
/**
|
|
1945
1951
|
* @example
|
|
1946
1952
|
* {}
|
|
@@ -2022,8 +2028,10 @@ interface PromptVersionIdsRequestDetail {
|
|
|
2022
2028
|
interface PromptVersionRetrieveDetail {
|
|
2023
2029
|
name: string;
|
|
2024
2030
|
commit?: string;
|
|
2025
|
-
/** If provided, resolves to the version mapped to this environment for the prompt; mutually exclusive with commit */
|
|
2031
|
+
/** If provided, resolves to the version mapped to this environment for the prompt; mutually exclusive with commit and version_number */
|
|
2026
2032
|
environment?: string;
|
|
2033
|
+
/** If provided, resolves to the version with this sequential number (e.g. v3); mutually exclusive with commit and environment */
|
|
2034
|
+
versionNumber?: string;
|
|
2027
2035
|
/** If provided, scopes the search to the specified project */
|
|
2028
2036
|
projectName?: string;
|
|
2029
2037
|
}
|
|
@@ -6027,6 +6035,8 @@ interface PromptVersionDetail {
|
|
|
6027
6035
|
promptId?: string;
|
|
6028
6036
|
/** version short unique identifier, generated if absent. it must be 8 characters long */
|
|
6029
6037
|
commit?: string;
|
|
6038
|
+
/** sequential version number in the format v<N>; null for masks */
|
|
6039
|
+
versionNumber?: string;
|
|
6030
6040
|
template: string;
|
|
6031
6041
|
metadata?: JsonNodeDetail;
|
|
6032
6042
|
type?: PromptVersionDetailType;
|
|
@@ -6093,6 +6103,8 @@ interface PromptVersionPublic {
|
|
|
6093
6103
|
promptId?: string;
|
|
6094
6104
|
/** version short unique identifier, generated if absent. it must be 8 characters long */
|
|
6095
6105
|
commit?: string;
|
|
6106
|
+
/** sequential version number in the format v<N>; null for masks */
|
|
6107
|
+
versionNumber?: string;
|
|
6096
6108
|
template: string;
|
|
6097
6109
|
metadata?: JsonNodePublic;
|
|
6098
6110
|
type?: PromptVersionPublicType;
|
|
@@ -6305,7 +6317,7 @@ interface ServiceTogglesConfig {
|
|
|
6305
6317
|
customllmProviderEnabled: boolean;
|
|
6306
6318
|
ollamaProviderEnabled: boolean;
|
|
6307
6319
|
ollieEnabled: boolean;
|
|
6308
|
-
agenticToolsEnabled
|
|
6320
|
+
agenticToolsEnabled: boolean;
|
|
6309
6321
|
v2WorkspaceAllowlistIds: string[];
|
|
6310
6322
|
v1WorkspaceAllowlistIds: string[];
|
|
6311
6323
|
forceWorkspaceVersion: string;
|
|
@@ -10372,6 +10384,22 @@ declare class PromptsClient {
|
|
|
10372
10384
|
*/
|
|
10373
10385
|
getPromptVersionById(versionId: string, request?: GetPromptVersionByIdRequest, requestOptions?: PromptsClient.RequestOptions): HttpResponsePromise<PromptVersionDetail>;
|
|
10374
10386
|
private __getPromptVersionById;
|
|
10387
|
+
/**
|
|
10388
|
+
* Get a prompt version by its sequential v<N> number for the given prompt.
|
|
10389
|
+
*
|
|
10390
|
+
* @param {string} promptId
|
|
10391
|
+
* @param {string} versionNumber
|
|
10392
|
+
* @param {OpikApi.GetPromptVersionByNumberRequest} request
|
|
10393
|
+
* @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
10394
|
+
*
|
|
10395
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
10396
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
10397
|
+
*
|
|
10398
|
+
* @example
|
|
10399
|
+
* await client.prompts.getPromptVersionByNumber("promptId", "versionNumber")
|
|
10400
|
+
*/
|
|
10401
|
+
getPromptVersionByNumber(promptId: string, versionNumber: string, request?: GetPromptVersionByNumberRequest, requestOptions?: PromptsClient.RequestOptions): HttpResponsePromise<PromptVersionDetail>;
|
|
10402
|
+
private __getPromptVersionByNumber;
|
|
10375
10403
|
/**
|
|
10376
10404
|
* Get prompt versions
|
|
10377
10405
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1941,6 +1941,12 @@ interface GetPromptsRequest {
|
|
|
1941
1941
|
*/
|
|
1942
1942
|
type GetPromptVersionByIdRequest = {};
|
|
1943
1943
|
|
|
1944
|
+
/**
|
|
1945
|
+
* @example
|
|
1946
|
+
* {}
|
|
1947
|
+
*/
|
|
1948
|
+
type GetPromptVersionByNumberRequest = {};
|
|
1949
|
+
|
|
1944
1950
|
/**
|
|
1945
1951
|
* @example
|
|
1946
1952
|
* {}
|
|
@@ -2022,8 +2028,10 @@ interface PromptVersionIdsRequestDetail {
|
|
|
2022
2028
|
interface PromptVersionRetrieveDetail {
|
|
2023
2029
|
name: string;
|
|
2024
2030
|
commit?: string;
|
|
2025
|
-
/** If provided, resolves to the version mapped to this environment for the prompt; mutually exclusive with commit */
|
|
2031
|
+
/** If provided, resolves to the version mapped to this environment for the prompt; mutually exclusive with commit and version_number */
|
|
2026
2032
|
environment?: string;
|
|
2033
|
+
/** If provided, resolves to the version with this sequential number (e.g. v3); mutually exclusive with commit and environment */
|
|
2034
|
+
versionNumber?: string;
|
|
2027
2035
|
/** If provided, scopes the search to the specified project */
|
|
2028
2036
|
projectName?: string;
|
|
2029
2037
|
}
|
|
@@ -6027,6 +6035,8 @@ interface PromptVersionDetail {
|
|
|
6027
6035
|
promptId?: string;
|
|
6028
6036
|
/** version short unique identifier, generated if absent. it must be 8 characters long */
|
|
6029
6037
|
commit?: string;
|
|
6038
|
+
/** sequential version number in the format v<N>; null for masks */
|
|
6039
|
+
versionNumber?: string;
|
|
6030
6040
|
template: string;
|
|
6031
6041
|
metadata?: JsonNodeDetail;
|
|
6032
6042
|
type?: PromptVersionDetailType;
|
|
@@ -6093,6 +6103,8 @@ interface PromptVersionPublic {
|
|
|
6093
6103
|
promptId?: string;
|
|
6094
6104
|
/** version short unique identifier, generated if absent. it must be 8 characters long */
|
|
6095
6105
|
commit?: string;
|
|
6106
|
+
/** sequential version number in the format v<N>; null for masks */
|
|
6107
|
+
versionNumber?: string;
|
|
6096
6108
|
template: string;
|
|
6097
6109
|
metadata?: JsonNodePublic;
|
|
6098
6110
|
type?: PromptVersionPublicType;
|
|
@@ -6305,7 +6317,7 @@ interface ServiceTogglesConfig {
|
|
|
6305
6317
|
customllmProviderEnabled: boolean;
|
|
6306
6318
|
ollamaProviderEnabled: boolean;
|
|
6307
6319
|
ollieEnabled: boolean;
|
|
6308
|
-
agenticToolsEnabled
|
|
6320
|
+
agenticToolsEnabled: boolean;
|
|
6309
6321
|
v2WorkspaceAllowlistIds: string[];
|
|
6310
6322
|
v1WorkspaceAllowlistIds: string[];
|
|
6311
6323
|
forceWorkspaceVersion: string;
|
|
@@ -10372,6 +10384,22 @@ declare class PromptsClient {
|
|
|
10372
10384
|
*/
|
|
10373
10385
|
getPromptVersionById(versionId: string, request?: GetPromptVersionByIdRequest, requestOptions?: PromptsClient.RequestOptions): HttpResponsePromise<PromptVersionDetail>;
|
|
10374
10386
|
private __getPromptVersionById;
|
|
10387
|
+
/**
|
|
10388
|
+
* Get a prompt version by its sequential v<N> number for the given prompt.
|
|
10389
|
+
*
|
|
10390
|
+
* @param {string} promptId
|
|
10391
|
+
* @param {string} versionNumber
|
|
10392
|
+
* @param {OpikApi.GetPromptVersionByNumberRequest} request
|
|
10393
|
+
* @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
10394
|
+
*
|
|
10395
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
10396
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
10397
|
+
*
|
|
10398
|
+
* @example
|
|
10399
|
+
* await client.prompts.getPromptVersionByNumber("promptId", "versionNumber")
|
|
10400
|
+
*/
|
|
10401
|
+
getPromptVersionByNumber(promptId: string, versionNumber: string, request?: GetPromptVersionByNumberRequest, requestOptions?: PromptsClient.RequestOptions): HttpResponsePromise<PromptVersionDetail>;
|
|
10402
|
+
private __getPromptVersionByNumber;
|
|
10375
10403
|
/**
|
|
10376
10404
|
* Get prompt versions
|
|
10377
10405
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Fa}from'./chunk-
|
|
1
|
+
import {Fa}from'./chunk-7EDVDI2X.js';export{sa as AgentTaskCompletionJudge,ra as AgentToolCorrectnessJudge,fa as AnswerRelevance,ba as BaseLLMJudgeMetric,C as BaseMetric,D as BaseSuiteEvaluator,p as ChatPrompt,ua as ComplianceRiskJudge,i as ConfigMismatchError,h as ConfigNotFoundError,_ as Contains,y as DEFAULT_EXECUTION_POLICY,j as Dataset,f as DatasetVersion,g as DatasetVersionNotFoundError,ma as DemographicBiasJudge,ka as DialogueHelpfulnessJudge,Z as ExactMatch,ga as GEval,ha as GEvalPreset,oa as GenderBiasJudge,ea as Hallucination,aa as IsJson,Q as LLMJudge,H as ModelConfigurationError,F as ModelError,G as ModelGenerationError,ca as Moderation,Ca as OPIK_PARENT_SPAN_ID_HEADER,Ba as OPIK_TRACE_ID_HEADER,Aa as Opik,E as OpikBaseModel,q as OpikQueryLanguage,d as OpikSpanType,na as PoliticalBiasJudge,o as Prompt,k as PromptType,ta as PromptUncertaintyJudge,la as QARelevanceJudge,$ as RegexMatch,qa as RegionalBiasJudge,pa as ReligiousBiasJudge,P as ResponseSchema,N as SYSTEM_PROMPT,ja as SummarizationCoherenceJudge,ia as SummarizationConsistencyJudge,B as TASK_ERROR_SCORE_NAME,ya as TestSuite,z as TestSuiteResult,s as ThreadsAnnotationQueue,r as TracesAnnotationQueue,O as USER_PROMPT_TEMPLATE,da as Usefulness,J as VercelAIChatModel,v as activateRunner,t as agentConfigContext,A as buildSuiteResult,K as createModel,L as createModelFromInstance,S as deserializeEvaluators,I as detectProvider,c as disableLogger,X as evaluate,Y as evaluatePrompt,V as evaluateTestSuite,u as flushAll,e as generateId,Da as getDistributedTraceHeaders,l as getGlobalClient,w as getTrackContext,a as logger,n as resetGlobalClient,va as resolveEvaluators,T as resolveExecutionPolicy,U as resolveItemExecutionPolicy,M as resolveModel,W as runTests,R as serializeEvaluators,m as setGlobalClient,b as setLoggerLevel,x as track,wa as validateEvaluators,xa as validateExecutionPolicy,Ea as z}from'./chunk-7EDVDI2X.js';Fa();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {za}from'./chunk-
|
|
1
|
+
import {za}from'./chunk-7EDVDI2X.js';export{y as DEFAULT_EXECUTION_POLICY,ya as TestSuite,z as TestSuiteResult,A as buildSuiteResult,S as deserializeEvaluators,V as evaluateTestSuite,T as resolveExecutionPolicy,U as resolveItemExecutionPolicy,W as runTests,R as serializeEvaluators}from'./chunk-7EDVDI2X.js';za();
|