opik 2.1.1 → 2.1.3
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-EM6ZX2PJ.js +404 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1 -1
- package/dist/{suite-MVH7DYD2.js → suite-FN42NVCE.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-I5ADVXKW.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -2082,6 +2082,7 @@ interface ProjectMetricRequestPublic {
|
|
|
2082
2082
|
*/
|
|
2083
2083
|
interface ProjectRetrieveDetailed {
|
|
2084
2084
|
name: string;
|
|
2085
|
+
includeStats?: boolean;
|
|
2085
2086
|
}
|
|
2086
2087
|
|
|
2087
2088
|
/**
|
|
@@ -7342,6 +7343,10 @@ interface SpendBreakdownResponse {
|
|
|
7342
7343
|
items?: Item[];
|
|
7343
7344
|
}
|
|
7344
7345
|
|
|
7346
|
+
interface SpendBreakdownsResponse {
|
|
7347
|
+
breakdowns?: SpendBreakdownResponse[];
|
|
7348
|
+
}
|
|
7349
|
+
|
|
7345
7350
|
interface SpendCompositionResponse {
|
|
7346
7351
|
input?: Side;
|
|
7347
7352
|
harness?: HarnessEntry[];
|
|
@@ -8626,6 +8631,22 @@ declare namespace AiSpendClient {
|
|
|
8626
8631
|
declare class AiSpendClient {
|
|
8627
8632
|
protected readonly _options: NormalizedClientOptions<AiSpendClient.Options>;
|
|
8628
8633
|
constructor(options?: AiSpendClient.Options);
|
|
8634
|
+
/**
|
|
8635
|
+
* Get the per-item breakdown for every composition lane in one request
|
|
8636
|
+
*
|
|
8637
|
+
* @param {OpikApi.SpendMetricRequest} request
|
|
8638
|
+
* @param {AiSpendClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
8639
|
+
*
|
|
8640
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
8641
|
+
*
|
|
8642
|
+
* @example
|
|
8643
|
+
* await client.aiSpend.getSpendAllBreakdowns({
|
|
8644
|
+
* intervalStart: new Date("2024-01-15T09:30:00.000Z"),
|
|
8645
|
+
* intervalEnd: new Date("2024-01-15T09:30:00.000Z")
|
|
8646
|
+
* })
|
|
8647
|
+
*/
|
|
8648
|
+
getSpendAllBreakdowns(request: SpendMetricRequest, requestOptions?: AiSpendClient.RequestOptions): HttpResponsePromise<SpendBreakdownsResponse>;
|
|
8649
|
+
private __getSpendAllBreakdowns;
|
|
8629
8650
|
/**
|
|
8630
8651
|
* Get coding-agent token-flow composition (Sankey)
|
|
8631
8652
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2082,6 +2082,7 @@ interface ProjectMetricRequestPublic {
|
|
|
2082
2082
|
*/
|
|
2083
2083
|
interface ProjectRetrieveDetailed {
|
|
2084
2084
|
name: string;
|
|
2085
|
+
includeStats?: boolean;
|
|
2085
2086
|
}
|
|
2086
2087
|
|
|
2087
2088
|
/**
|
|
@@ -7342,6 +7343,10 @@ interface SpendBreakdownResponse {
|
|
|
7342
7343
|
items?: Item[];
|
|
7343
7344
|
}
|
|
7344
7345
|
|
|
7346
|
+
interface SpendBreakdownsResponse {
|
|
7347
|
+
breakdowns?: SpendBreakdownResponse[];
|
|
7348
|
+
}
|
|
7349
|
+
|
|
7345
7350
|
interface SpendCompositionResponse {
|
|
7346
7351
|
input?: Side;
|
|
7347
7352
|
harness?: HarnessEntry[];
|
|
@@ -8626,6 +8631,22 @@ declare namespace AiSpendClient {
|
|
|
8626
8631
|
declare class AiSpendClient {
|
|
8627
8632
|
protected readonly _options: NormalizedClientOptions<AiSpendClient.Options>;
|
|
8628
8633
|
constructor(options?: AiSpendClient.Options);
|
|
8634
|
+
/**
|
|
8635
|
+
* Get the per-item breakdown for every composition lane in one request
|
|
8636
|
+
*
|
|
8637
|
+
* @param {OpikApi.SpendMetricRequest} request
|
|
8638
|
+
* @param {AiSpendClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
8639
|
+
*
|
|
8640
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
8641
|
+
*
|
|
8642
|
+
* @example
|
|
8643
|
+
* await client.aiSpend.getSpendAllBreakdowns({
|
|
8644
|
+
* intervalStart: new Date("2024-01-15T09:30:00.000Z"),
|
|
8645
|
+
* intervalEnd: new Date("2024-01-15T09:30:00.000Z")
|
|
8646
|
+
* })
|
|
8647
|
+
*/
|
|
8648
|
+
getSpendAllBreakdowns(request: SpendMetricRequest, requestOptions?: AiSpendClient.RequestOptions): HttpResponsePromise<SpendBreakdownsResponse>;
|
|
8649
|
+
private __getSpendAllBreakdowns;
|
|
8629
8650
|
/**
|
|
8630
8651
|
* Get coding-agent token-flow composition (Sankey)
|
|
8631
8652
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-EM6ZX2PJ.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-EM6ZX2PJ.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-EM6ZX2PJ.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-EM6ZX2PJ.js';Ca();
|