opik 2.2.103 → 2.2.105
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-WZONMQPQ.js +404 -0
- package/dist/cli.js +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +59 -1
- package/dist/index.d.ts +59 -1
- package/dist/index.js +1 -1
- package/dist/{suite-3ONJT32J.js → suite-EFUP2OTE.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-6AZ2JTVY.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -381,6 +381,8 @@ interface GetLatestBlueprintRequest {
|
|
|
381
381
|
interface AgentInsightsIssueUpdate {
|
|
382
382
|
projectId: string;
|
|
383
383
|
status: AgentInsightsIssueUpdateStatus;
|
|
384
|
+
/** Why the issue is closed as not useful. Stored only with status closed; any other status clears it */
|
|
385
|
+
closeNote?: string;
|
|
384
386
|
}
|
|
385
387
|
|
|
386
388
|
/**
|
|
@@ -468,6 +470,17 @@ interface Request {
|
|
|
468
470
|
projectIds: string[];
|
|
469
471
|
}
|
|
470
472
|
|
|
473
|
+
/**
|
|
474
|
+
* @example
|
|
475
|
+
* {
|
|
476
|
+
* guidance: "guidance"
|
|
477
|
+
* }
|
|
478
|
+
*/
|
|
479
|
+
interface AgentInsightsGuidanceUpdate {
|
|
480
|
+
/** Project guidance for Agent Insights runs. Empty or whitespace-only clears it */
|
|
481
|
+
guidance: string;
|
|
482
|
+
}
|
|
483
|
+
|
|
471
484
|
/**
|
|
472
485
|
* @example
|
|
473
486
|
* {
|
|
@@ -3714,6 +3727,12 @@ interface AgentInsightsIssue {
|
|
|
3714
3727
|
lastSeen?: string;
|
|
3715
3728
|
/** COUNT(DISTINCT report_day) in the requested window */
|
|
3716
3729
|
daysReported?: number;
|
|
3730
|
+
/** The team's reason for closing the issue as not useful; set only while status is closed */
|
|
3731
|
+
closeNote?: string;
|
|
3732
|
+
/** Who last changed the status */
|
|
3733
|
+
statusChangedBy?: string;
|
|
3734
|
+
/** When the status was last changed */
|
|
3735
|
+
statusChangedAt?: Date;
|
|
3717
3736
|
createdBy?: string;
|
|
3718
3737
|
createdAt?: Date;
|
|
3719
3738
|
lastUpdatedBy?: string;
|
|
@@ -3763,6 +3782,12 @@ interface AgentInsightsIssueWithDetails {
|
|
|
3763
3782
|
status?: AgentInsightsIssueWithDetailsStatus;
|
|
3764
3783
|
severity?: AgentInsightsIssueWithDetailsSeverity;
|
|
3765
3784
|
tracesQuery?: string;
|
|
3785
|
+
/** The team's reason for closing the issue as not useful; set only while status is closed */
|
|
3786
|
+
closeNote?: string;
|
|
3787
|
+
/** Who last changed the status */
|
|
3788
|
+
statusChangedBy?: string;
|
|
3789
|
+
/** When the status was last changed */
|
|
3790
|
+
statusChangedAt?: Date;
|
|
3766
3791
|
createdBy?: string;
|
|
3767
3792
|
createdAt?: Date;
|
|
3768
3793
|
lastUpdatedBy?: string;
|
|
@@ -3796,6 +3821,16 @@ interface AgentInsightsJob {
|
|
|
3796
3821
|
lastFailureReason?: string;
|
|
3797
3822
|
lastFailureDetail?: string;
|
|
3798
3823
|
lastFailedAt?: Date;
|
|
3824
|
+
/** Project guidance sent to every run; null when none */
|
|
3825
|
+
guidance?: string;
|
|
3826
|
+
/** Who last saved the guidance */
|
|
3827
|
+
guidanceUpdatedBy?: string;
|
|
3828
|
+
/** When the guidance was last saved */
|
|
3829
|
+
guidanceUpdatedAt?: Date;
|
|
3830
|
+
/** Bumped each time the guidance text changes; 0 = never saved */
|
|
3831
|
+
guidanceVersion?: number;
|
|
3832
|
+
/** Guidance version the current results were produced with; null = no run since guidance existed */
|
|
3833
|
+
resultsGuidanceVersion?: number;
|
|
3799
3834
|
createdAt?: Date;
|
|
3800
3835
|
createdBy?: string;
|
|
3801
3836
|
lastUpdatedAt?: Date;
|
|
@@ -7349,6 +7384,8 @@ interface Response$1 {
|
|
|
7349
7384
|
unknownProjectIds?: string[];
|
|
7350
7385
|
/** Ids whose automatic run already happened, so enrolling has no effect */
|
|
7351
7386
|
alreadyRunProjectIds?: string[];
|
|
7387
|
+
/** Ids whose automatic run never finished, so clearing forgot it and enrolling them again gives it one more free run */
|
|
7388
|
+
resetProjectIds?: string[];
|
|
7352
7389
|
}
|
|
7353
7390
|
|
|
7354
7391
|
interface ResponseFormat {
|
|
@@ -7489,6 +7526,7 @@ interface ServiceTogglesConfig {
|
|
|
7489
7526
|
ollamaProviderEnabled: boolean;
|
|
7490
7527
|
ollieEnabled: boolean;
|
|
7491
7528
|
agentInsightsEnabled: boolean;
|
|
7529
|
+
agentInsightsGuidanceEnabled: boolean;
|
|
7492
7530
|
projectHomepageEnabled: boolean;
|
|
7493
7531
|
onlineScoringTracingEnabled: boolean;
|
|
7494
7532
|
annotationQueueAutomationEnabled: boolean;
|
|
@@ -9013,7 +9051,7 @@ declare class AgentInsightsClient {
|
|
|
9013
9051
|
getAgentInsightsIssueById(issue_id: string, request: GetAgentInsightsIssueByIdRequest, requestOptions?: AgentInsightsClient.RequestOptions): HttpResponsePromise<AgentInsightsIssueWithDetails>;
|
|
9014
9052
|
private __getAgentInsightsIssueById;
|
|
9015
9053
|
/**
|
|
9016
|
-
* Moves an issue through its lifecycle: open, resolved or closed
|
|
9054
|
+
* Moves an issue through its lifecycle: open, resolved or closed. close_note is kept only with closed; any other status clears it
|
|
9017
9055
|
*
|
|
9018
9056
|
* @param {string} issue_id
|
|
9019
9057
|
* @param {OpikApi.AgentInsightsIssueUpdate} request
|
|
@@ -9021,7 +9059,9 @@ declare class AgentInsightsClient {
|
|
|
9021
9059
|
*
|
|
9022
9060
|
* @throws {@link OpikApi.BadRequestError}
|
|
9023
9061
|
* @throws {@link OpikApi.UnauthorizedError}
|
|
9062
|
+
* @throws {@link OpikApi.ForbiddenError}
|
|
9024
9063
|
* @throws {@link OpikApi.NotFoundError}
|
|
9064
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
9025
9065
|
*
|
|
9026
9066
|
* @example
|
|
9027
9067
|
* await client.agentInsights.updateAgentInsightsIssue("issue_id", {
|
|
@@ -9130,6 +9170,24 @@ declare class AgentInsightsJobsClient {
|
|
|
9130
9170
|
*/
|
|
9131
9171
|
triggerAgentInsightsJob(projectId: string, request?: TriggerAgentInsightsJobRequest, requestOptions?: AgentInsightsJobsClient.RequestOptions): HttpResponsePromise<void>;
|
|
9132
9172
|
private __triggerAgentInsightsJob;
|
|
9173
|
+
/**
|
|
9174
|
+
* Saves the project guidance sent to every Agent Insights run, creating the job (disabled) if the project has none. Empty or whitespace-only clears it. The guidance version is bumped only when the text changes. 404 while guidance is not enabled.
|
|
9175
|
+
*
|
|
9176
|
+
* @param {string} projectId
|
|
9177
|
+
* @param {OpikApi.AgentInsightsGuidanceUpdate} request
|
|
9178
|
+
* @param {AgentInsightsJobsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
9179
|
+
*
|
|
9180
|
+
* @throws {@link OpikApi.ForbiddenError}
|
|
9181
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
9182
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
9183
|
+
*
|
|
9184
|
+
* @example
|
|
9185
|
+
* await client.agentInsightsJobs.updateAgentInsightsGuidance("projectId", {
|
|
9186
|
+
* guidance: "guidance"
|
|
9187
|
+
* })
|
|
9188
|
+
*/
|
|
9189
|
+
updateAgentInsightsGuidance(projectId: string, request: AgentInsightsGuidanceUpdate, requestOptions?: AgentInsightsJobsClient.RequestOptions): HttpResponsePromise<AgentInsightsJob>;
|
|
9190
|
+
private __updateAgentInsightsGuidance;
|
|
9133
9191
|
}
|
|
9134
9192
|
|
|
9135
9193
|
declare namespace AlertsClient {
|
package/dist/index.d.ts
CHANGED
|
@@ -381,6 +381,8 @@ interface GetLatestBlueprintRequest {
|
|
|
381
381
|
interface AgentInsightsIssueUpdate {
|
|
382
382
|
projectId: string;
|
|
383
383
|
status: AgentInsightsIssueUpdateStatus;
|
|
384
|
+
/** Why the issue is closed as not useful. Stored only with status closed; any other status clears it */
|
|
385
|
+
closeNote?: string;
|
|
384
386
|
}
|
|
385
387
|
|
|
386
388
|
/**
|
|
@@ -468,6 +470,17 @@ interface Request {
|
|
|
468
470
|
projectIds: string[];
|
|
469
471
|
}
|
|
470
472
|
|
|
473
|
+
/**
|
|
474
|
+
* @example
|
|
475
|
+
* {
|
|
476
|
+
* guidance: "guidance"
|
|
477
|
+
* }
|
|
478
|
+
*/
|
|
479
|
+
interface AgentInsightsGuidanceUpdate {
|
|
480
|
+
/** Project guidance for Agent Insights runs. Empty or whitespace-only clears it */
|
|
481
|
+
guidance: string;
|
|
482
|
+
}
|
|
483
|
+
|
|
471
484
|
/**
|
|
472
485
|
* @example
|
|
473
486
|
* {
|
|
@@ -3714,6 +3727,12 @@ interface AgentInsightsIssue {
|
|
|
3714
3727
|
lastSeen?: string;
|
|
3715
3728
|
/** COUNT(DISTINCT report_day) in the requested window */
|
|
3716
3729
|
daysReported?: number;
|
|
3730
|
+
/** The team's reason for closing the issue as not useful; set only while status is closed */
|
|
3731
|
+
closeNote?: string;
|
|
3732
|
+
/** Who last changed the status */
|
|
3733
|
+
statusChangedBy?: string;
|
|
3734
|
+
/** When the status was last changed */
|
|
3735
|
+
statusChangedAt?: Date;
|
|
3717
3736
|
createdBy?: string;
|
|
3718
3737
|
createdAt?: Date;
|
|
3719
3738
|
lastUpdatedBy?: string;
|
|
@@ -3763,6 +3782,12 @@ interface AgentInsightsIssueWithDetails {
|
|
|
3763
3782
|
status?: AgentInsightsIssueWithDetailsStatus;
|
|
3764
3783
|
severity?: AgentInsightsIssueWithDetailsSeverity;
|
|
3765
3784
|
tracesQuery?: string;
|
|
3785
|
+
/** The team's reason for closing the issue as not useful; set only while status is closed */
|
|
3786
|
+
closeNote?: string;
|
|
3787
|
+
/** Who last changed the status */
|
|
3788
|
+
statusChangedBy?: string;
|
|
3789
|
+
/** When the status was last changed */
|
|
3790
|
+
statusChangedAt?: Date;
|
|
3766
3791
|
createdBy?: string;
|
|
3767
3792
|
createdAt?: Date;
|
|
3768
3793
|
lastUpdatedBy?: string;
|
|
@@ -3796,6 +3821,16 @@ interface AgentInsightsJob {
|
|
|
3796
3821
|
lastFailureReason?: string;
|
|
3797
3822
|
lastFailureDetail?: string;
|
|
3798
3823
|
lastFailedAt?: Date;
|
|
3824
|
+
/** Project guidance sent to every run; null when none */
|
|
3825
|
+
guidance?: string;
|
|
3826
|
+
/** Who last saved the guidance */
|
|
3827
|
+
guidanceUpdatedBy?: string;
|
|
3828
|
+
/** When the guidance was last saved */
|
|
3829
|
+
guidanceUpdatedAt?: Date;
|
|
3830
|
+
/** Bumped each time the guidance text changes; 0 = never saved */
|
|
3831
|
+
guidanceVersion?: number;
|
|
3832
|
+
/** Guidance version the current results were produced with; null = no run since guidance existed */
|
|
3833
|
+
resultsGuidanceVersion?: number;
|
|
3799
3834
|
createdAt?: Date;
|
|
3800
3835
|
createdBy?: string;
|
|
3801
3836
|
lastUpdatedAt?: Date;
|
|
@@ -7349,6 +7384,8 @@ interface Response$1 {
|
|
|
7349
7384
|
unknownProjectIds?: string[];
|
|
7350
7385
|
/** Ids whose automatic run already happened, so enrolling has no effect */
|
|
7351
7386
|
alreadyRunProjectIds?: string[];
|
|
7387
|
+
/** Ids whose automatic run never finished, so clearing forgot it and enrolling them again gives it one more free run */
|
|
7388
|
+
resetProjectIds?: string[];
|
|
7352
7389
|
}
|
|
7353
7390
|
|
|
7354
7391
|
interface ResponseFormat {
|
|
@@ -7489,6 +7526,7 @@ interface ServiceTogglesConfig {
|
|
|
7489
7526
|
ollamaProviderEnabled: boolean;
|
|
7490
7527
|
ollieEnabled: boolean;
|
|
7491
7528
|
agentInsightsEnabled: boolean;
|
|
7529
|
+
agentInsightsGuidanceEnabled: boolean;
|
|
7492
7530
|
projectHomepageEnabled: boolean;
|
|
7493
7531
|
onlineScoringTracingEnabled: boolean;
|
|
7494
7532
|
annotationQueueAutomationEnabled: boolean;
|
|
@@ -9013,7 +9051,7 @@ declare class AgentInsightsClient {
|
|
|
9013
9051
|
getAgentInsightsIssueById(issue_id: string, request: GetAgentInsightsIssueByIdRequest, requestOptions?: AgentInsightsClient.RequestOptions): HttpResponsePromise<AgentInsightsIssueWithDetails>;
|
|
9014
9052
|
private __getAgentInsightsIssueById;
|
|
9015
9053
|
/**
|
|
9016
|
-
* Moves an issue through its lifecycle: open, resolved or closed
|
|
9054
|
+
* Moves an issue through its lifecycle: open, resolved or closed. close_note is kept only with closed; any other status clears it
|
|
9017
9055
|
*
|
|
9018
9056
|
* @param {string} issue_id
|
|
9019
9057
|
* @param {OpikApi.AgentInsightsIssueUpdate} request
|
|
@@ -9021,7 +9059,9 @@ declare class AgentInsightsClient {
|
|
|
9021
9059
|
*
|
|
9022
9060
|
* @throws {@link OpikApi.BadRequestError}
|
|
9023
9061
|
* @throws {@link OpikApi.UnauthorizedError}
|
|
9062
|
+
* @throws {@link OpikApi.ForbiddenError}
|
|
9024
9063
|
* @throws {@link OpikApi.NotFoundError}
|
|
9064
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
9025
9065
|
*
|
|
9026
9066
|
* @example
|
|
9027
9067
|
* await client.agentInsights.updateAgentInsightsIssue("issue_id", {
|
|
@@ -9130,6 +9170,24 @@ declare class AgentInsightsJobsClient {
|
|
|
9130
9170
|
*/
|
|
9131
9171
|
triggerAgentInsightsJob(projectId: string, request?: TriggerAgentInsightsJobRequest, requestOptions?: AgentInsightsJobsClient.RequestOptions): HttpResponsePromise<void>;
|
|
9132
9172
|
private __triggerAgentInsightsJob;
|
|
9173
|
+
/**
|
|
9174
|
+
* Saves the project guidance sent to every Agent Insights run, creating the job (disabled) if the project has none. Empty or whitespace-only clears it. The guidance version is bumped only when the text changes. 404 while guidance is not enabled.
|
|
9175
|
+
*
|
|
9176
|
+
* @param {string} projectId
|
|
9177
|
+
* @param {OpikApi.AgentInsightsGuidanceUpdate} request
|
|
9178
|
+
* @param {AgentInsightsJobsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
9179
|
+
*
|
|
9180
|
+
* @throws {@link OpikApi.ForbiddenError}
|
|
9181
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
9182
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
9183
|
+
*
|
|
9184
|
+
* @example
|
|
9185
|
+
* await client.agentInsightsJobs.updateAgentInsightsGuidance("projectId", {
|
|
9186
|
+
* guidance: "guidance"
|
|
9187
|
+
* })
|
|
9188
|
+
*/
|
|
9189
|
+
updateAgentInsightsGuidance(projectId: string, request: AgentInsightsGuidanceUpdate, requestOptions?: AgentInsightsJobsClient.RequestOptions): HttpResponsePromise<AgentInsightsJob>;
|
|
9190
|
+
private __updateAgentInsightsGuidance;
|
|
9133
9191
|
}
|
|
9134
9192
|
|
|
9135
9193
|
declare namespace AlertsClient {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-WZONMQPQ.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-WZONMQPQ.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-WZONMQPQ.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-WZONMQPQ.js';Ca();
|