opik 2.1.21 → 2.1.22
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-VMYFJBMS.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +1 -1
- package/dist/{suite-FNWKXIIP.js → suite-67MCN67F.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-D3NTBFFR.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -2880,6 +2880,16 @@ interface SpanSearchStreamRequestPublic {
|
|
|
2880
2880
|
toTime?: Date;
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
|
+
/**
|
|
2884
|
+
* @example
|
|
2885
|
+
* {}
|
|
2886
|
+
*/
|
|
2887
|
+
interface SpansExistRequest {
|
|
2888
|
+
projectId?: string;
|
|
2889
|
+
projectName?: string;
|
|
2890
|
+
source?: string;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2883
2893
|
/**
|
|
2884
2894
|
* @example
|
|
2885
2895
|
* {
|
|
@@ -3227,6 +3237,17 @@ interface TraceSearchStreamRequestPublic {
|
|
|
3227
3237
|
toTime?: Date;
|
|
3228
3238
|
}
|
|
3229
3239
|
|
|
3240
|
+
/**
|
|
3241
|
+
* @example
|
|
3242
|
+
* {}
|
|
3243
|
+
*/
|
|
3244
|
+
interface TracesExistRequest {
|
|
3245
|
+
projectId?: string;
|
|
3246
|
+
projectName?: string;
|
|
3247
|
+
source?: string;
|
|
3248
|
+
threadOnly?: boolean;
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3230
3251
|
/**
|
|
3231
3252
|
* @example
|
|
3232
3253
|
* {}
|
|
@@ -5139,6 +5160,11 @@ interface ExecutionPolicyWrite {
|
|
|
5139
5160
|
passThreshold?: number;
|
|
5140
5161
|
}
|
|
5141
5162
|
|
|
5163
|
+
interface ExistenceResponse {
|
|
5164
|
+
/** Whether the project has at least one matching entity for the given scope */
|
|
5165
|
+
exists?: boolean;
|
|
5166
|
+
}
|
|
5167
|
+
|
|
5142
5168
|
interface ExperimentExecutionResponse {
|
|
5143
5169
|
experiments?: ExperimentInfo[];
|
|
5144
5170
|
totalItems?: number;
|
|
@@ -12354,6 +12380,17 @@ declare class SpansClient {
|
|
|
12354
12380
|
*/
|
|
12355
12381
|
searchSpans(request?: SpanSearchStreamRequestPublic, requestOptions?: SpansClient.RequestOptions): HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
12356
12382
|
private __searchSpans;
|
|
12383
|
+
/**
|
|
12384
|
+
* Returns whether the project has at least one span matching the given scope. Cheap existence probe (LIMIT 1) used to drive empty-state decisions without scanning or aggregating the whole project.
|
|
12385
|
+
*
|
|
12386
|
+
* @param {OpikApi.SpansExistRequest} request
|
|
12387
|
+
* @param {SpansClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
12388
|
+
*
|
|
12389
|
+
* @example
|
|
12390
|
+
* await client.spans.exist()
|
|
12391
|
+
*/
|
|
12392
|
+
exist(request?: SpansExistRequest, requestOptions?: SpansClient.RequestOptions): HttpResponsePromise<ExistenceResponse>;
|
|
12393
|
+
private __exist;
|
|
12357
12394
|
/**
|
|
12358
12395
|
* Update span comment by id
|
|
12359
12396
|
*
|
|
@@ -12916,6 +12953,17 @@ declare class TracesClient {
|
|
|
12916
12953
|
*/
|
|
12917
12954
|
searchTraces(request?: TraceSearchStreamRequestPublic, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
12918
12955
|
private __searchTraces;
|
|
12956
|
+
/**
|
|
12957
|
+
* Returns whether the project has at least one trace matching the given scope. Cheap existence probe (LIMIT 1) used to drive empty-state decisions without scanning or aggregating the whole project.
|
|
12958
|
+
*
|
|
12959
|
+
* @param {OpikApi.TracesExistRequest} request
|
|
12960
|
+
* @param {TracesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
12961
|
+
*
|
|
12962
|
+
* @example
|
|
12963
|
+
* await client.traces.exist()
|
|
12964
|
+
*/
|
|
12965
|
+
exist(request?: TracesExistRequest, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<ExistenceResponse>;
|
|
12966
|
+
private __exist;
|
|
12919
12967
|
/**
|
|
12920
12968
|
* Update thread
|
|
12921
12969
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2880,6 +2880,16 @@ interface SpanSearchStreamRequestPublic {
|
|
|
2880
2880
|
toTime?: Date;
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
|
+
/**
|
|
2884
|
+
* @example
|
|
2885
|
+
* {}
|
|
2886
|
+
*/
|
|
2887
|
+
interface SpansExistRequest {
|
|
2888
|
+
projectId?: string;
|
|
2889
|
+
projectName?: string;
|
|
2890
|
+
source?: string;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2883
2893
|
/**
|
|
2884
2894
|
* @example
|
|
2885
2895
|
* {
|
|
@@ -3227,6 +3237,17 @@ interface TraceSearchStreamRequestPublic {
|
|
|
3227
3237
|
toTime?: Date;
|
|
3228
3238
|
}
|
|
3229
3239
|
|
|
3240
|
+
/**
|
|
3241
|
+
* @example
|
|
3242
|
+
* {}
|
|
3243
|
+
*/
|
|
3244
|
+
interface TracesExistRequest {
|
|
3245
|
+
projectId?: string;
|
|
3246
|
+
projectName?: string;
|
|
3247
|
+
source?: string;
|
|
3248
|
+
threadOnly?: boolean;
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3230
3251
|
/**
|
|
3231
3252
|
* @example
|
|
3232
3253
|
* {}
|
|
@@ -5139,6 +5160,11 @@ interface ExecutionPolicyWrite {
|
|
|
5139
5160
|
passThreshold?: number;
|
|
5140
5161
|
}
|
|
5141
5162
|
|
|
5163
|
+
interface ExistenceResponse {
|
|
5164
|
+
/** Whether the project has at least one matching entity for the given scope */
|
|
5165
|
+
exists?: boolean;
|
|
5166
|
+
}
|
|
5167
|
+
|
|
5142
5168
|
interface ExperimentExecutionResponse {
|
|
5143
5169
|
experiments?: ExperimentInfo[];
|
|
5144
5170
|
totalItems?: number;
|
|
@@ -12354,6 +12380,17 @@ declare class SpansClient {
|
|
|
12354
12380
|
*/
|
|
12355
12381
|
searchSpans(request?: SpanSearchStreamRequestPublic, requestOptions?: SpansClient.RequestOptions): HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
12356
12382
|
private __searchSpans;
|
|
12383
|
+
/**
|
|
12384
|
+
* Returns whether the project has at least one span matching the given scope. Cheap existence probe (LIMIT 1) used to drive empty-state decisions without scanning or aggregating the whole project.
|
|
12385
|
+
*
|
|
12386
|
+
* @param {OpikApi.SpansExistRequest} request
|
|
12387
|
+
* @param {SpansClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
12388
|
+
*
|
|
12389
|
+
* @example
|
|
12390
|
+
* await client.spans.exist()
|
|
12391
|
+
*/
|
|
12392
|
+
exist(request?: SpansExistRequest, requestOptions?: SpansClient.RequestOptions): HttpResponsePromise<ExistenceResponse>;
|
|
12393
|
+
private __exist;
|
|
12357
12394
|
/**
|
|
12358
12395
|
* Update span comment by id
|
|
12359
12396
|
*
|
|
@@ -12916,6 +12953,17 @@ declare class TracesClient {
|
|
|
12916
12953
|
*/
|
|
12917
12954
|
searchTraces(request?: TraceSearchStreamRequestPublic, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
12918
12955
|
private __searchTraces;
|
|
12956
|
+
/**
|
|
12957
|
+
* Returns whether the project has at least one trace matching the given scope. Cheap existence probe (LIMIT 1) used to drive empty-state decisions without scanning or aggregating the whole project.
|
|
12958
|
+
*
|
|
12959
|
+
* @param {OpikApi.TracesExistRequest} request
|
|
12960
|
+
* @param {TracesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
12961
|
+
*
|
|
12962
|
+
* @example
|
|
12963
|
+
* await client.traces.exist()
|
|
12964
|
+
*/
|
|
12965
|
+
exist(request?: TracesExistRequest, requestOptions?: TracesClient.RequestOptions): HttpResponsePromise<ExistenceResponse>;
|
|
12966
|
+
private __exist;
|
|
12919
12967
|
/**
|
|
12920
12968
|
* Update thread
|
|
12921
12969
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-VMYFJBMS.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-VMYFJBMS.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-VMYFJBMS.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-VMYFJBMS.js';Ca();
|