@arizeai/phoenix-client 6.10.1 → 6.11.1
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/README.md +62 -0
- package/dist/esm/__generated__/api/v1.d.ts +254 -2
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/jest/index.d.ts +5 -0
- package/dist/esm/jest/index.d.ts.map +1 -0
- package/dist/esm/jest/index.js +49 -0
- package/dist/esm/jest/index.js.map +1 -0
- package/dist/esm/jest/reporter.d.ts +13 -0
- package/dist/esm/jest/reporter.d.ts.map +1 -0
- package/dist/esm/jest/reporter.js +19 -0
- package/dist/esm/jest/reporter.js.map +1 -0
- package/dist/esm/prompts/sdks/toAI.d.ts +2 -2
- package/dist/esm/prompts/sdks/toAI.d.ts.map +1 -1
- package/dist/esm/prompts/sdks/toAI.js.map +1 -1
- package/dist/esm/prompts/sdks/toAnthropic.d.ts +2 -2
- package/dist/esm/prompts/sdks/toAnthropic.d.ts.map +1 -1
- package/dist/esm/prompts/sdks/toAnthropic.js.map +1 -1
- package/dist/esm/prompts/sdks/toOpenAI.d.ts +2 -2
- package/dist/esm/prompts/sdks/toOpenAI.d.ts.map +1 -1
- package/dist/esm/prompts/sdks/toOpenAI.js.map +1 -1
- package/dist/esm/prompts/sdks/toSDK.d.ts +8 -8
- package/dist/esm/prompts/sdks/toSDK.d.ts.map +1 -1
- package/dist/esm/prompts/sdks/toSDK.js.map +1 -1
- package/dist/esm/prompts/sdks/types.d.ts +2 -2
- package/dist/esm/prompts/sdks/types.d.ts.map +1 -1
- package/dist/esm/schemas/llm/anthropic/converters.d.ts +8 -8
- package/dist/esm/schemas/llm/anthropic/messagePartSchemas.d.ts +4 -4
- package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts +6 -6
- package/dist/esm/schemas/llm/constants.d.ts +3 -3
- package/dist/esm/schemas/llm/converters.d.ts +12 -12
- package/dist/esm/schemas/llm/openai/converters.d.ts +3 -3
- package/dist/esm/schemas/llm/schemas.d.ts +2 -2
- package/dist/esm/testing/acceptance.d.ts +20 -0
- package/dist/esm/testing/acceptance.d.ts.map +1 -0
- package/dist/esm/testing/acceptance.js +129 -0
- package/dist/esm/testing/acceptance.js.map +1 -0
- package/dist/esm/testing/define-api.d.ts +157 -0
- package/dist/esm/testing/define-api.d.ts.map +1 -0
- package/dist/esm/testing/define-api.js +78 -0
- package/dist/esm/testing/define-api.js.map +1 -0
- package/dist/esm/testing/helpers.d.ts +55 -0
- package/dist/esm/testing/helpers.d.ts.map +1 -0
- package/dist/esm/testing/helpers.js +179 -0
- package/dist/esm/testing/helpers.js.map +1 -0
- package/dist/esm/testing/phoenix-test-tracking.d.ts +68 -0
- package/dist/esm/testing/phoenix-test-tracking.d.ts.map +1 -0
- package/dist/esm/testing/phoenix-test-tracking.js +521 -0
- package/dist/esm/testing/phoenix-test-tracking.js.map +1 -0
- package/dist/esm/testing/report-artifacts.d.ts +45 -0
- package/dist/esm/testing/report-artifacts.d.ts.map +1 -0
- package/dist/esm/testing/report-artifacts.js +218 -0
- package/dist/esm/testing/report-artifacts.js.map +1 -0
- package/dist/esm/testing/report-run.d.ts +22 -0
- package/dist/esm/testing/report-run.d.ts.map +1 -0
- package/dist/esm/testing/report-run.js +41 -0
- package/dist/esm/testing/report-run.js.map +1 -0
- package/dist/esm/testing/reporter-format.d.ts +83 -0
- package/dist/esm/testing/reporter-format.d.ts.map +1 -0
- package/dist/esm/testing/reporter-format.js +852 -0
- package/dist/esm/testing/reporter-format.js.map +1 -0
- package/dist/esm/testing/runner.d.ts +31 -0
- package/dist/esm/testing/runner.d.ts.map +1 -0
- package/dist/esm/testing/runner.js +238 -0
- package/dist/esm/testing/runner.js.map +1 -0
- package/dist/esm/testing/state.d.ts +138 -0
- package/dist/esm/testing/state.d.ts.map +1 -0
- package/dist/esm/testing/state.js +31 -0
- package/dist/esm/testing/state.js.map +1 -0
- package/dist/esm/testing/types.d.ts +319 -0
- package/dist/esm/testing/types.d.ts.map +1 -0
- package/dist/esm/testing/types.js +9 -0
- package/dist/esm/testing/types.js.map +1 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/channel.d.ts +7 -7
- package/dist/esm/utils/channel.d.ts.map +1 -1
- package/dist/esm/utils/channel.js +1 -1
- package/dist/esm/utils/channel.js.map +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/esm/utils/promisifyResult.d.ts +1 -1
- package/dist/esm/utils/promisifyResult.d.ts.map +1 -1
- package/dist/esm/utils/promisifyResult.js.map +1 -1
- package/dist/esm/utils/schemaMatches.d.ts +5 -5
- package/dist/esm/utils/schemaMatches.d.ts.map +1 -1
- package/dist/esm/utils/schemaMatches.js.map +1 -1
- package/dist/esm/vitest/index.d.ts +5 -0
- package/dist/esm/vitest/index.d.ts.map +1 -0
- package/dist/esm/vitest/index.js +15 -0
- package/dist/esm/vitest/index.js.map +1 -0
- package/dist/esm/vitest/reporter.d.ts +19 -0
- package/dist/esm/vitest/reporter.d.ts.map +1 -0
- package/dist/esm/vitest/reporter.js +27 -0
- package/dist/esm/vitest/reporter.js.map +1 -0
- package/dist/src/__generated__/api/v1.d.ts +254 -2
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/jest/index.d.ts +5 -0
- package/dist/src/jest/index.d.ts.map +1 -0
- package/dist/src/jest/index.js +58 -0
- package/dist/src/jest/index.js.map +1 -0
- package/dist/src/jest/reporter.d.ts +13 -0
- package/dist/src/jest/reporter.d.ts.map +1 -0
- package/dist/src/jest/reporter.js +23 -0
- package/dist/src/jest/reporter.js.map +1 -0
- package/dist/src/prompts/sdks/toAI.d.ts +2 -2
- package/dist/src/prompts/sdks/toAI.d.ts.map +1 -1
- package/dist/src/prompts/sdks/toAI.js.map +1 -1
- package/dist/src/prompts/sdks/toAnthropic.d.ts +2 -2
- package/dist/src/prompts/sdks/toAnthropic.d.ts.map +1 -1
- package/dist/src/prompts/sdks/toAnthropic.js.map +1 -1
- package/dist/src/prompts/sdks/toOpenAI.d.ts +2 -2
- package/dist/src/prompts/sdks/toOpenAI.d.ts.map +1 -1
- package/dist/src/prompts/sdks/toOpenAI.js.map +1 -1
- package/dist/src/prompts/sdks/toSDK.d.ts +8 -8
- package/dist/src/prompts/sdks/toSDK.d.ts.map +1 -1
- package/dist/src/prompts/sdks/toSDK.js.map +1 -1
- package/dist/src/prompts/sdks/types.d.ts +2 -2
- package/dist/src/prompts/sdks/types.d.ts.map +1 -1
- package/dist/src/schemas/llm/anthropic/converters.d.ts +8 -8
- package/dist/src/schemas/llm/anthropic/messagePartSchemas.d.ts +4 -4
- package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts +6 -6
- package/dist/src/schemas/llm/constants.d.ts +3 -3
- package/dist/src/schemas/llm/converters.d.ts +12 -12
- package/dist/src/schemas/llm/openai/converters.d.ts +3 -3
- package/dist/src/schemas/llm/schemas.d.ts +2 -2
- package/dist/src/testing/acceptance.d.ts +20 -0
- package/dist/src/testing/acceptance.d.ts.map +1 -0
- package/dist/src/testing/acceptance.js +114 -0
- package/dist/src/testing/acceptance.js.map +1 -0
- package/dist/src/testing/define-api.d.ts +157 -0
- package/dist/src/testing/define-api.d.ts.map +1 -0
- package/dist/src/testing/define-api.js +81 -0
- package/dist/src/testing/define-api.js.map +1 -0
- package/dist/src/testing/helpers.d.ts +55 -0
- package/dist/src/testing/helpers.d.ts.map +1 -0
- package/dist/src/testing/helpers.js +182 -0
- package/dist/src/testing/helpers.js.map +1 -0
- package/dist/src/testing/phoenix-test-tracking.d.ts +68 -0
- package/dist/src/testing/phoenix-test-tracking.d.ts.map +1 -0
- package/dist/src/testing/phoenix-test-tracking.js +530 -0
- package/dist/src/testing/phoenix-test-tracking.js.map +1 -0
- package/dist/src/testing/report-artifacts.d.ts +45 -0
- package/dist/src/testing/report-artifacts.d.ts.map +1 -0
- package/dist/src/testing/report-artifacts.js +225 -0
- package/dist/src/testing/report-artifacts.js.map +1 -0
- package/dist/src/testing/report-run.d.ts +22 -0
- package/dist/src/testing/report-run.d.ts.map +1 -0
- package/dist/src/testing/report-run.js +47 -0
- package/dist/src/testing/report-run.js.map +1 -0
- package/dist/src/testing/reporter-format.d.ts +83 -0
- package/dist/src/testing/reporter-format.d.ts.map +1 -0
- package/dist/src/testing/reporter-format.js +870 -0
- package/dist/src/testing/reporter-format.js.map +1 -0
- package/dist/src/testing/runner.d.ts +31 -0
- package/dist/src/testing/runner.d.ts.map +1 -0
- package/dist/src/testing/runner.js +258 -0
- package/dist/src/testing/runner.js.map +1 -0
- package/dist/src/testing/state.d.ts +138 -0
- package/dist/src/testing/state.d.ts.map +1 -0
- package/dist/src/testing/state.js +38 -0
- package/dist/src/testing/state.js.map +1 -0
- package/dist/src/testing/types.d.ts +319 -0
- package/dist/src/testing/types.d.ts.map +1 -0
- package/dist/src/testing/types.js +13 -0
- package/dist/src/testing/types.js.map +1 -0
- package/dist/src/utils/channel.d.ts +7 -7
- package/dist/src/utils/channel.d.ts.map +1 -1
- package/dist/src/utils/channel.js +1 -1
- package/dist/src/utils/channel.js.map +1 -1
- package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/src/utils/promisifyResult.d.ts +1 -1
- package/dist/src/utils/promisifyResult.d.ts.map +1 -1
- package/dist/src/utils/promisifyResult.js.map +1 -1
- package/dist/src/utils/schemaMatches.d.ts +5 -5
- package/dist/src/utils/schemaMatches.d.ts.map +1 -1
- package/dist/src/utils/schemaMatches.js.map +1 -1
- package/dist/src/vitest/index.d.ts +5 -0
- package/dist/src/vitest/index.d.ts.map +1 -0
- package/dist/src/vitest/index.js +23 -0
- package/dist/src/vitest/index.js.map +1 -0
- package/dist/src/vitest/reporter.d.ts +19 -0
- package/dist/src/vitest/reporter.d.ts.map +1 -0
- package/dist/src/vitest/reporter.js +34 -0
- package/dist/src/vitest/reporter.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/ci-evals-annotations.mdx +190 -0
- package/docs/ci-evals-jest.mdx +78 -0
- package/docs/ci-evals-vitest.mdx +240 -0
- package/docs/ci-evals.mdx +263 -0
- package/docs/overview.mdx +9 -1
- package/package.json +49 -17
- package/src/__generated__/api/v1.ts +254 -2
- package/src/jest/index.ts +124 -0
- package/src/jest/reporter.ts +22 -0
- package/src/prompts/sdks/toAI.ts +4 -3
- package/src/prompts/sdks/toAnthropic.ts +4 -3
- package/src/prompts/sdks/toOpenAI.ts +4 -3
- package/src/prompts/sdks/toSDK.ts +16 -11
- package/src/prompts/sdks/types.ts +2 -2
- package/src/testing/acceptance.ts +190 -0
- package/src/testing/define-api.ts +279 -0
- package/src/testing/helpers.ts +251 -0
- package/src/testing/phoenix-test-tracking.ts +637 -0
- package/src/testing/report-artifacts.ts +272 -0
- package/src/testing/report-run.ts +44 -0
- package/src/testing/reporter-format.ts +1072 -0
- package/src/testing/runner.ts +350 -0
- package/src/testing/state.ts +165 -0
- package/src/testing/types.ts +366 -0
- package/src/utils/channel.ts +17 -15
- package/src/utils/promisifyResult.ts +6 -4
- package/src/utils/schemaMatches.ts +12 -10
- package/src/vitest/index.ts +57 -0
- package/src/vitest/reporter.ts +32 -0
|
@@ -381,7 +381,7 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
381
381
|
type: "image";
|
|
382
382
|
source: {
|
|
383
383
|
data: string;
|
|
384
|
-
media_type: "image/
|
|
384
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
385
385
|
type: "base64";
|
|
386
386
|
};
|
|
387
387
|
} | {
|
|
@@ -394,7 +394,7 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
394
394
|
type: "image";
|
|
395
395
|
source: {
|
|
396
396
|
data: string;
|
|
397
|
-
media_type: "image/
|
|
397
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
398
398
|
type: "base64";
|
|
399
399
|
};
|
|
400
400
|
})[];
|
|
@@ -476,7 +476,7 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
476
476
|
type: "image";
|
|
477
477
|
source: {
|
|
478
478
|
data: string;
|
|
479
|
-
media_type: "image/
|
|
479
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
480
480
|
type: "base64";
|
|
481
481
|
};
|
|
482
482
|
text?: undefined;
|
|
@@ -1384,7 +1384,7 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
1384
1384
|
type: "image";
|
|
1385
1385
|
source: {
|
|
1386
1386
|
data: string;
|
|
1387
|
-
media_type: "image/
|
|
1387
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
1388
1388
|
type: "base64";
|
|
1389
1389
|
};
|
|
1390
1390
|
} | {
|
|
@@ -1397,7 +1397,7 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
1397
1397
|
type: "image";
|
|
1398
1398
|
source: {
|
|
1399
1399
|
data: string;
|
|
1400
|
-
media_type: "image/
|
|
1400
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
1401
1401
|
type: "base64";
|
|
1402
1402
|
};
|
|
1403
1403
|
})[];
|
|
@@ -1479,7 +1479,7 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
1479
1479
|
type: "image";
|
|
1480
1480
|
source: {
|
|
1481
1481
|
data: string;
|
|
1482
|
-
media_type: "image/
|
|
1482
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
1483
1483
|
type: "base64";
|
|
1484
1484
|
};
|
|
1485
1485
|
text?: undefined;
|
|
@@ -2387,7 +2387,7 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
2387
2387
|
type: "image";
|
|
2388
2388
|
source: {
|
|
2389
2389
|
data: string;
|
|
2390
|
-
media_type: "image/
|
|
2390
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
2391
2391
|
type: "base64";
|
|
2392
2392
|
};
|
|
2393
2393
|
} | {
|
|
@@ -2400,7 +2400,7 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
2400
2400
|
type: "image";
|
|
2401
2401
|
source: {
|
|
2402
2402
|
data: string;
|
|
2403
|
-
media_type: "image/
|
|
2403
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
2404
2404
|
type: "base64";
|
|
2405
2405
|
};
|
|
2406
2406
|
})[];
|
|
@@ -2482,7 +2482,7 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
2482
2482
|
type: "image";
|
|
2483
2483
|
source: {
|
|
2484
2484
|
data: string;
|
|
2485
|
-
media_type: "image/
|
|
2485
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
2486
2486
|
type: "base64";
|
|
2487
2487
|
};
|
|
2488
2488
|
text?: undefined;
|
|
@@ -3390,7 +3390,7 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
3390
3390
|
type: "image";
|
|
3391
3391
|
source: {
|
|
3392
3392
|
data: string;
|
|
3393
|
-
media_type: "image/
|
|
3393
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
3394
3394
|
type: "base64";
|
|
3395
3395
|
};
|
|
3396
3396
|
} | {
|
|
@@ -3403,7 +3403,7 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
3403
3403
|
type: "image";
|
|
3404
3404
|
source: {
|
|
3405
3405
|
data: string;
|
|
3406
|
-
media_type: "image/
|
|
3406
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
3407
3407
|
type: "base64";
|
|
3408
3408
|
};
|
|
3409
3409
|
})[];
|
|
@@ -3485,7 +3485,7 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
3485
3485
|
type: "image";
|
|
3486
3486
|
source: {
|
|
3487
3487
|
data: string;
|
|
3488
|
-
media_type: "image/
|
|
3488
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
3489
3489
|
type: "base64";
|
|
3490
3490
|
};
|
|
3491
3491
|
text?: undefined;
|
|
@@ -14,7 +14,7 @@ export declare const openAIChatPartToAnthropic: import("zod").ZodPipe<import("zo
|
|
|
14
14
|
type: "image";
|
|
15
15
|
source: {
|
|
16
16
|
data: string;
|
|
17
|
-
media_type: "image/
|
|
17
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
18
18
|
type: "base64";
|
|
19
19
|
};
|
|
20
20
|
text?: undefined;
|
|
@@ -98,7 +98,7 @@ export declare const openAIMessageToAnthropic: import("zod").ZodPipe<import("zod
|
|
|
98
98
|
type: "image";
|
|
99
99
|
source: {
|
|
100
100
|
data: string;
|
|
101
|
-
media_type: "image/
|
|
101
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
102
102
|
type: "base64";
|
|
103
103
|
};
|
|
104
104
|
} | {
|
|
@@ -111,7 +111,7 @@ export declare const openAIMessageToAnthropic: import("zod").ZodPipe<import("zod
|
|
|
111
111
|
type: "image";
|
|
112
112
|
source: {
|
|
113
113
|
data: string;
|
|
114
|
-
media_type: "image/
|
|
114
|
+
media_type: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
115
115
|
type: "base64";
|
|
116
116
|
};
|
|
117
117
|
})[];
|
|
@@ -68,9 +68,9 @@ export declare const llmProviderMessageSchema: z.ZodUnion<readonly [z.ZodDiscrim
|
|
|
68
68
|
source: z.ZodObject<{
|
|
69
69
|
data: z.ZodString;
|
|
70
70
|
media_type: z.ZodEnum<{
|
|
71
|
+
"image/gif": "image/gif";
|
|
71
72
|
"image/jpeg": "image/jpeg";
|
|
72
73
|
"image/png": "image/png";
|
|
73
|
-
"image/gif": "image/gif";
|
|
74
74
|
"image/webp": "image/webp";
|
|
75
75
|
}>;
|
|
76
76
|
type: z.ZodLiteral<"base64">;
|
|
@@ -91,9 +91,9 @@ export declare const llmProviderMessageSchema: z.ZodUnion<readonly [z.ZodDiscrim
|
|
|
91
91
|
source: z.ZodObject<{
|
|
92
92
|
data: z.ZodString;
|
|
93
93
|
media_type: z.ZodEnum<{
|
|
94
|
+
"image/gif": "image/gif";
|
|
94
95
|
"image/jpeg": "image/jpeg";
|
|
95
96
|
"image/png": "image/png";
|
|
96
|
-
"image/gif": "image/gif";
|
|
97
97
|
"image/webp": "image/webp";
|
|
98
98
|
}>;
|
|
99
99
|
type: z.ZodLiteral<"base64">;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TestResult } from "./state.js";
|
|
2
|
+
import type { AcceptanceCriterion, AcceptanceResult } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Evaluate all configured aggregate acceptance rules against completed runs.
|
|
5
|
+
* @param params - Evaluation parameters.
|
|
6
|
+
* @param params.criteria - Aggregate rules configured on the suite.
|
|
7
|
+
* @param params.results - Completed test results in the suite.
|
|
8
|
+
*/
|
|
9
|
+
export declare function evaluateAcceptanceCriteria({ criteria, results, }: {
|
|
10
|
+
criteria: readonly AcceptanceCriterion[] | undefined;
|
|
11
|
+
results: readonly TestResult[];
|
|
12
|
+
}): AcceptanceResult[];
|
|
13
|
+
/**
|
|
14
|
+
* Build one error containing every failed aggregate criterion.
|
|
15
|
+
* @param results - Computed acceptance results.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createAcceptanceFailureError(results: readonly AcceptanceResult[]): Error | undefined;
|
|
18
|
+
/** Format an acceptance result for reporters and thrown errors. */
|
|
19
|
+
export declare function formatAcceptanceResult(result: AcceptanceResult): string;
|
|
20
|
+
//# sourceMappingURL=acceptance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acceptance.d.ts","sourceRoot":"","sources":["../../../src/testing/acceptance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAGjB,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,SAAS,mBAAmB,EAAE,GAAG,SAAS,CAAC;IACrD,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;CAChC,GAAG,gBAAgB,EAAE,CAOrB;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,SAAS,gBAAgB,EAAE,GACnC,KAAK,GAAG,SAAS,CAWnB;AAED,mEAAmE;AACnE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAavE"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluate all configured aggregate acceptance rules against completed runs.
|
|
3
|
+
* @param params - Evaluation parameters.
|
|
4
|
+
* @param params.criteria - Aggregate rules configured on the suite.
|
|
5
|
+
* @param params.results - Completed test results in the suite.
|
|
6
|
+
*/
|
|
7
|
+
export function evaluateAcceptanceCriteria({ criteria, results, }) {
|
|
8
|
+
if (!criteria || criteria.length === 0) {
|
|
9
|
+
return [];
|
|
10
|
+
}
|
|
11
|
+
return criteria.map((criterion) => evaluateAcceptanceCriterion({ criterion, results }));
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Build one error containing every failed aggregate criterion.
|
|
15
|
+
* @param results - Computed acceptance results.
|
|
16
|
+
*/
|
|
17
|
+
export function createAcceptanceFailureError(results) {
|
|
18
|
+
const failedResults = results.filter((result) => !result.passed);
|
|
19
|
+
if (failedResults.length === 0) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
return new Error([
|
|
23
|
+
"Acceptance criteria failed:",
|
|
24
|
+
...failedResults.map((result) => ` ${formatAcceptanceResult(result)}`),
|
|
25
|
+
].join("\n"));
|
|
26
|
+
}
|
|
27
|
+
/** Format an acceptance result for reporters and thrown errors. */
|
|
28
|
+
export function formatAcceptanceResult(result) {
|
|
29
|
+
const status = result.passed ? "PASS" : "FAIL";
|
|
30
|
+
const value = result.value === null ? "n/a" : result.value.toFixed(3);
|
|
31
|
+
const sampleLabel = result.sampleCount === 1 ? "sample" : "samples";
|
|
32
|
+
let requirement;
|
|
33
|
+
if (result.metric === "average") {
|
|
34
|
+
const cmp = (result.direction ?? "maximize") === "minimize" ? "<=" : ">=";
|
|
35
|
+
requirement = `mean ${cmp} ${result.threshold.toFixed(3)}`;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
requirement = `pass rate >= ${result.minPassRate.toFixed(3)}`;
|
|
39
|
+
}
|
|
40
|
+
const reason = result.failureReason ? ` - ${result.failureReason}` : "";
|
|
41
|
+
return `${status} ${result.annotationName} ${result.metric} ${value} (need ${requirement}; ${result.sampleCount} ${sampleLabel})${reason}`;
|
|
42
|
+
}
|
|
43
|
+
function evaluateAcceptanceCriterion({ criterion, results, }) {
|
|
44
|
+
const annotations = collectAnnotations({ criterion, results });
|
|
45
|
+
if (criterion.metric === "average") {
|
|
46
|
+
// Only numeric / boolean scores can be averaged.
|
|
47
|
+
const scores = annotations
|
|
48
|
+
.map((annotation) => annotation.score)
|
|
49
|
+
.filter(isValidScore);
|
|
50
|
+
if (scores.length === 0) {
|
|
51
|
+
return {
|
|
52
|
+
...criterion,
|
|
53
|
+
value: null,
|
|
54
|
+
sampleCount: 0,
|
|
55
|
+
passed: false,
|
|
56
|
+
failureReason: "no numeric or boolean scores found",
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
const direction = criterion.direction ?? "maximize";
|
|
60
|
+
const value = calculateAverage(scores);
|
|
61
|
+
return {
|
|
62
|
+
...criterion,
|
|
63
|
+
value,
|
|
64
|
+
sampleCount: scores.length,
|
|
65
|
+
passed: meetsBar(value, criterion.threshold, direction),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
// passRate: each run passes when `passFn` returns true for its annotation;
|
|
69
|
+
// the suite passes when the fraction of passing runs is at least
|
|
70
|
+
// `minPassRate`. The reported value is that fraction.
|
|
71
|
+
if (annotations.length === 0) {
|
|
72
|
+
return {
|
|
73
|
+
...criterion,
|
|
74
|
+
value: null,
|
|
75
|
+
sampleCount: 0,
|
|
76
|
+
passed: false,
|
|
77
|
+
failureReason: "no matching annotations found",
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
const passed = annotations.filter((annotation) => criterion.passFn(annotation)).length;
|
|
81
|
+
const value = passed / annotations.length;
|
|
82
|
+
return {
|
|
83
|
+
...criterion,
|
|
84
|
+
value,
|
|
85
|
+
sampleCount: annotations.length,
|
|
86
|
+
passed: value >= criterion.minPassRate,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/** Whether `value` clears `bar` in the given optimization direction. */
|
|
90
|
+
function meetsBar(value, bar, direction) {
|
|
91
|
+
return direction === "minimize" ? value <= bar : value >= bar;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The last annotation matching `annotationName` from each non-skipped run that
|
|
95
|
+
* logged it. One entry per run; runs that never logged the annotation are
|
|
96
|
+
* omitted.
|
|
97
|
+
*/
|
|
98
|
+
function collectAnnotations({ criterion, results, }) {
|
|
99
|
+
return results
|
|
100
|
+
.filter((result) => result.status !== "skipped")
|
|
101
|
+
.map((result) => findLastAnnotation({
|
|
102
|
+
annotations: result.annotations,
|
|
103
|
+
annotationName: criterion.annotationName,
|
|
104
|
+
}))
|
|
105
|
+
.filter((annotation) => annotation !== undefined);
|
|
106
|
+
}
|
|
107
|
+
function findLastAnnotation({ annotations, annotationName, }) {
|
|
108
|
+
for (let annotationIndex = annotations.length - 1; annotationIndex >= 0; annotationIndex--) {
|
|
109
|
+
const annotation = annotations[annotationIndex];
|
|
110
|
+
if (annotation?.name === annotationName) {
|
|
111
|
+
return annotation;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
function isValidScore(score) {
|
|
117
|
+
return (typeof score === "boolean" ||
|
|
118
|
+
(typeof score === "number" && Number.isFinite(score)));
|
|
119
|
+
}
|
|
120
|
+
function calculateAverage(scores) {
|
|
121
|
+
const total = scores
|
|
122
|
+
.map(scoreToNumber)
|
|
123
|
+
.reduce((sum, score) => sum + score, 0);
|
|
124
|
+
return total / scores.length;
|
|
125
|
+
}
|
|
126
|
+
function scoreToNumber(score) {
|
|
127
|
+
return typeof score === "boolean" ? (score ? 1 : 0) : score;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=acceptance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acceptance.js","sourceRoot":"","sources":["../../../src/testing/acceptance.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CAAC,EACzC,QAAQ,EACR,OAAO,GAIR;IACC,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAChC,2BAA2B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CACpD,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAC1C,OAAoC;IAEpC,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,KAAK,CACd;QACE,6BAA6B;QAC7B,GAAG,aAAa,CAA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Y,CAAC,KAA0B;IAC9C,OAAO,CACL,OAAO,KAAK,KAAK,SAAS;QAC1B,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CACtD,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAqC;IAC7D,MAAM,KAAK,GAAG,MAAM;SACjB,GAAG,CAAC,aAAa,CAAC;SAClB,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC;IAC1C,OAAO,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;AAC/B,CAAC;AAED,SAAS,aAAa,CAAC,KAAuB;IAC5C,OAAO,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAC9D,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { type RunnerHooks } from "./runner.js";
|
|
2
|
+
import { type KVMap, type SuiteConfig, type TestEachRow, type TestFn, type TestParams } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Declare Phoenix eval test suites.
|
|
5
|
+
*
|
|
6
|
+
* Drop-in replacement for the test runner's own `describe`. The suite name
|
|
7
|
+
* doubles as the dataset and experiment name on the Phoenix server, and the
|
|
8
|
+
* optional {@link SuiteConfig} controls dataset naming, repetitions, dry-run
|
|
9
|
+
* mode, and CI acceptance criteria.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* import * as px from "@arizeai/phoenix-client/vitest";
|
|
14
|
+
*
|
|
15
|
+
* px.describe("generate sql demo", () => {
|
|
16
|
+
* px.test("offtopic input", { input: { question: "hi" } }, async ({ input }) => {
|
|
17
|
+
* // ...
|
|
18
|
+
* });
|
|
19
|
+
* }, { metadata: { model: "gpt-4o-mini" } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export interface PhoenixDescribe {
|
|
23
|
+
/**
|
|
24
|
+
* Declare a Phoenix eval test suite.
|
|
25
|
+
*
|
|
26
|
+
* @param name - Suite name; doubles as the dataset / experiment name on Phoenix.
|
|
27
|
+
* @param fn - Suite body that declares its `test` / `it` cases.
|
|
28
|
+
* @param config - Optional suite-level config (dataset name, repetitions, dry-run, acceptance criteria).
|
|
29
|
+
*/
|
|
30
|
+
(name: string, fn: () => void, config?: SuiteConfig): void;
|
|
31
|
+
/**
|
|
32
|
+
* Run only this suite, skipping all sibling suites
|
|
33
|
+
* (matches the runner's `describe.only`).
|
|
34
|
+
*
|
|
35
|
+
* @param name - Suite name; doubles as the dataset / experiment name on Phoenix.
|
|
36
|
+
* @param fn - Suite body that declares its `test` / `it` cases.
|
|
37
|
+
* @param config - Optional suite-level config.
|
|
38
|
+
*/
|
|
39
|
+
only(name: string, fn: () => void, config?: SuiteConfig): void;
|
|
40
|
+
/**
|
|
41
|
+
* Skip this suite entirely (matches the runner's `describe.skip`). No dataset
|
|
42
|
+
* or experiment is created on Phoenix.
|
|
43
|
+
*
|
|
44
|
+
* @param name - Suite name; doubles as the dataset / experiment name on Phoenix.
|
|
45
|
+
* @param fn - Suite body (not executed).
|
|
46
|
+
* @param config - Optional suite-level config.
|
|
47
|
+
*/
|
|
48
|
+
skip(name: string, fn: () => void, config?: SuiteConfig): void;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The test body returned by {@link PhoenixTest.each} after a table is bound.
|
|
52
|
+
*
|
|
53
|
+
* @param name - Test name, or a template (`%i` / `%s` / `%j`), or a function
|
|
54
|
+
* that derives the name from the row and its index.
|
|
55
|
+
* @param fn - The test handler, run once per row in the bound table.
|
|
56
|
+
* @param timeout - Optional per-test timeout in milliseconds.
|
|
57
|
+
*/
|
|
58
|
+
export type PhoenixTestEach<Input extends KVMap = KVMap, Expected extends KVMap = KVMap> = (name: string | ((row: TestEachRow<Input, Expected>, index: number) => string), fn: TestFn<Input, Expected>, timeout?: number) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Declare a single Phoenix eval test case.
|
|
61
|
+
*
|
|
62
|
+
* Drop-in replacement for the test runner's own `test` / `it`. The `params`
|
|
63
|
+
* argument carries the `input` and the reference output (`expected` /
|
|
64
|
+
* `reference` / `output`) that become the dataset example; whatever the handler
|
|
65
|
+
* returns (or passes to `logOutput()`) is recorded as the experiment run's
|
|
66
|
+
* output and made available to evaluators.
|
|
67
|
+
*
|
|
68
|
+
* `it` is the canonical alias for `test`; the two are identical.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* px.test(
|
|
73
|
+
* "summarizes the article",
|
|
74
|
+
* { input: { article }, expected: { summary } },
|
|
75
|
+
* async ({ input, expected }) => {
|
|
76
|
+
* const output = await summarize(input.article);
|
|
77
|
+
* px.logOutput(output);
|
|
78
|
+
* await px.evaluate({ name: "matches", evaluate: () => output === expected.summary });
|
|
79
|
+
* }
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
export interface PhoenixTest {
|
|
84
|
+
/**
|
|
85
|
+
* Declare a single Phoenix eval test case.
|
|
86
|
+
*
|
|
87
|
+
* @param name - Test case name; doubles as the dataset example label.
|
|
88
|
+
* @param params - Inline `input` and reference output that become the dataset example.
|
|
89
|
+
* @param fn - Test handler; receives `{ input, expected, metadata }`.
|
|
90
|
+
* @param timeout - Optional per-test timeout in milliseconds.
|
|
91
|
+
*/
|
|
92
|
+
<Input extends KVMap = KVMap, Expected extends KVMap = KVMap>(name: string, params: TestParams<Input, Expected>, fn: TestFn<Input, Expected>, timeout?: number): void;
|
|
93
|
+
/**
|
|
94
|
+
* Run only this test case, skipping its siblings
|
|
95
|
+
* (matches the runner's `test.only`).
|
|
96
|
+
*
|
|
97
|
+
* @param name - Test case name; doubles as the dataset example label.
|
|
98
|
+
* @param params - Inline `input` and reference output that become the dataset example.
|
|
99
|
+
* @param fn - Test handler; receives `{ input, expected, metadata }`.
|
|
100
|
+
* @param timeout - Optional per-test timeout in milliseconds.
|
|
101
|
+
*/
|
|
102
|
+
only<Input extends KVMap = KVMap, Expected extends KVMap = KVMap>(name: string, params: TestParams<Input, Expected>, fn: TestFn<Input, Expected>, timeout?: number): void;
|
|
103
|
+
/**
|
|
104
|
+
* Skip this test case (matches the runner's `test.skip`). No dataset example
|
|
105
|
+
* or experiment run is created on Phoenix.
|
|
106
|
+
*
|
|
107
|
+
* @param name - Test case name; doubles as the dataset example label.
|
|
108
|
+
* @param params - Inline `input` and reference output (not used while skipped).
|
|
109
|
+
* @param fn - Test handler (not executed).
|
|
110
|
+
* @param timeout - Optional per-test timeout in milliseconds.
|
|
111
|
+
*/
|
|
112
|
+
skip<Input extends KVMap = KVMap, Expected extends KVMap = KVMap>(name: string, params: TestParams<Input, Expected>, fn: TestFn<Input, Expected>, timeout?: number): void;
|
|
113
|
+
/**
|
|
114
|
+
* Run the same test handler across many examples. Returns a function that
|
|
115
|
+
* takes a name (or template / name-builder) and the shared test body; each
|
|
116
|
+
* row in `table` becomes its own dataset example and experiment run.
|
|
117
|
+
*
|
|
118
|
+
* @param table - Rows of `{ input, expected?, metadata?, ... }` to fan out over.
|
|
119
|
+
* @returns A {@link PhoenixTestEach} that binds the name and shared handler.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```ts
|
|
123
|
+
* px.test.each([
|
|
124
|
+
* { input: { a: 1, b: 2 }, expected: { sum: 3 } },
|
|
125
|
+
* { input: { a: 2, b: 2 }, expected: { sum: 4 } },
|
|
126
|
+
* ])("adds %j", async ({ input, expected }) => {
|
|
127
|
+
* // ...
|
|
128
|
+
* });
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
each<Input extends KVMap, Expected extends KVMap>(table: TestEachRow<Input, Expected>[]): PhoenixTestEach<Input, Expected>;
|
|
132
|
+
}
|
|
133
|
+
/** The public testing surface returned by {@link createTestApi}. */
|
|
134
|
+
export interface PhoenixTestApi {
|
|
135
|
+
/** Declare a Phoenix eval test suite. See {@link PhoenixDescribe}. */
|
|
136
|
+
describe: PhoenixDescribe;
|
|
137
|
+
/** Declare a Phoenix eval test case. See {@link PhoenixTest}. */
|
|
138
|
+
test: PhoenixTest;
|
|
139
|
+
/** Canonical alias for {@link PhoenixTestApi.test}. */
|
|
140
|
+
it: PhoenixTest;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Build the public `describe`/`test`/`it` API for a runner adapter.
|
|
144
|
+
*
|
|
145
|
+
* Both the jest and vitest entrypoints expose the identical surface; the only
|
|
146
|
+
* thing that differs between them is how the {@link RunnerHooks} are obtained
|
|
147
|
+
* (vitest imports them statically, jest resolves them lazily from globals).
|
|
148
|
+
* That difference is captured by `getHooks`, which is invoked once per
|
|
149
|
+
* declaration so adapters are free to resolve hooks lazily.
|
|
150
|
+
*
|
|
151
|
+
* The JSDoc that surfaces in editors lives on the {@link PhoenixDescribe} and
|
|
152
|
+
* {@link PhoenixTest} interfaces rather than the implementations below, so the
|
|
153
|
+
* docs survive the `export const { describe, test, it } = createTestApi(...)`
|
|
154
|
+
* destructuring in each adapter.
|
|
155
|
+
*/
|
|
156
|
+
export declare function createTestApi(getHooks: () => RunnerHooks): PhoenixTestApi;
|
|
157
|
+
//# sourceMappingURL=define-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-api.d.ts","sourceRoot":"","sources":["../../../src/testing/define-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,eAAe;IA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ACZ,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,EACnC,EAAE,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC3B,OAAO,CAAC,EAAE,MAAM,GACf,IAAI,CAAC;IACR;;;;;;;;OAQG;IACH,IAAI,CAAC,KAAK,SAAS,KAAK,GAAG,KAAK,EAAE,QAAQ,SAAS,KAAK,GAAG,KAAK,EAC9D,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,EACnC,EAAE,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC3B,OAAO,CAAC,EAAE,MAAM,GACf,IAAI,CAAC;IACR;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,KAAK,SAAS,KAAK,EAAE,QAAQ,SAAS,KAAK,EAC9C,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,GACpC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;CACrC;AAED,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC7B,sEAAsE;IACtE,QAAQ,EAAE,eAAe,CAAC;IAC1B,iEAAiE;IACjE,IAAI,EAAE,WAAW,CAAC;IAClB,uDAAuD;IACvD,EAAE,EAAE,WAAW,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,WAAW,GAAG,cAAc,CA8DzE"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { declareDescribe, declareTest } from "./runner.js";
|
|
2
|
+
import { resolveReference, } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Build the public `describe`/`test`/`it` API for a runner adapter.
|
|
5
|
+
*
|
|
6
|
+
* Both the jest and vitest entrypoints expose the identical surface; the only
|
|
7
|
+
* thing that differs between them is how the {@link RunnerHooks} are obtained
|
|
8
|
+
* (vitest imports them statically, jest resolves them lazily from globals).
|
|
9
|
+
* That difference is captured by `getHooks`, which is invoked once per
|
|
10
|
+
* declaration so adapters are free to resolve hooks lazily.
|
|
11
|
+
*
|
|
12
|
+
* The JSDoc that surfaces in editors lives on the {@link PhoenixDescribe} and
|
|
13
|
+
* {@link PhoenixTest} interfaces rather than the implementations below, so the
|
|
14
|
+
* docs survive the `export const { describe, test, it } = createTestApi(...)`
|
|
15
|
+
* destructuring in each adapter.
|
|
16
|
+
*/
|
|
17
|
+
export function createTestApi(getHooks) {
|
|
18
|
+
const describe = ((name, fn, config) => {
|
|
19
|
+
declareDescribe(getHooks(), name, fn, config ?? {});
|
|
20
|
+
});
|
|
21
|
+
describe.only = (name, fn, config) => {
|
|
22
|
+
declareDescribe(getHooks(), name, fn, config ?? {}, "only");
|
|
23
|
+
};
|
|
24
|
+
describe.skip = (name, fn, config) => {
|
|
25
|
+
declareDescribe(getHooks(), name, fn, config ?? {}, "skip");
|
|
26
|
+
};
|
|
27
|
+
const test = ((name, params, fn, timeout) => {
|
|
28
|
+
declareTest(getHooks(), name, params, fn, "default", timeout);
|
|
29
|
+
});
|
|
30
|
+
test.only = (name, params, fn, timeout) => {
|
|
31
|
+
declareTest(getHooks(), name, params, fn, "only", timeout);
|
|
32
|
+
};
|
|
33
|
+
test.skip = (name, params, fn, timeout) => {
|
|
34
|
+
declareTest(getHooks(), name, params, fn, "skip", timeout);
|
|
35
|
+
};
|
|
36
|
+
test.each = (table) => {
|
|
37
|
+
return (name, fn, timeout) => {
|
|
38
|
+
table.forEach((row, i) => {
|
|
39
|
+
const testName = typeof name === "function"
|
|
40
|
+
? name(row, i)
|
|
41
|
+
: interpolateName(name, row, i);
|
|
42
|
+
declareTest(getHooks(), testName, {
|
|
43
|
+
id: row.id,
|
|
44
|
+
input: row.input,
|
|
45
|
+
expected: resolveReference(row),
|
|
46
|
+
metadata: row.metadata,
|
|
47
|
+
splits: row.splits,
|
|
48
|
+
repetitions: row.repetitions,
|
|
49
|
+
dryRun: row.dryRun,
|
|
50
|
+
}, fn, "default", timeout);
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
// `it` is the canonical alias for `test`.
|
|
55
|
+
const it = test;
|
|
56
|
+
return { describe, test, it };
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Interpolate a `test.each` name template for a single row. Supports the
|
|
60
|
+
* common `%i`/`%s`/`%j` placeholders for surface parity with the underlying
|
|
61
|
+
* runners; when no placeholder is present the 1-based row index is appended.
|
|
62
|
+
*/
|
|
63
|
+
function interpolateName(name, row, index) {
|
|
64
|
+
if (!name.includes("%")) {
|
|
65
|
+
return `${name} #${index + 1}`;
|
|
66
|
+
}
|
|
67
|
+
const replacements = [
|
|
68
|
+
[/%i/g, String(index)],
|
|
69
|
+
[/%s/g, JSON.stringify(row.input)],
|
|
70
|
+
[/%j/g, JSON.stringify(row)],
|
|
71
|
+
];
|
|
72
|
+
let out = name;
|
|
73
|
+
for (const [pattern, value] of replacements) {
|
|
74
|
+
out = out.replace(pattern, value);
|
|
75
|
+
}
|
|
76
|
+
return out;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=define-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-api.js","sourceRoot":"","sources":["../../../src/testing/define-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAC;AAC1E,OAAO,EAEL,gBAAgB,GAKjB,MAAM,SAAS,CAAC;AAyKjB;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,aAAa,CAAC,QAA2B;IACvD,MAAM,QAAQ,GAAG,CAAC,CAChB,IAAY,EACZ,EAAc,EACd,MAAoB,EACd,EAAE;QACR,eAAe,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC,CAAoB,CAAC;IACtB,QAAQ,CAAC,IAAI,GAAG,CAA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AY,EAAE,CAAC;QAC5C,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type SuiteState } from "./state.js";
|
|
2
|
+
import type { Annotation, EvaluationParams, EvaluationResult, Evaluator, KVMap } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Log the output produced by the test for the current run.
|
|
5
|
+
*
|
|
6
|
+
* Calling this multiple times overwrites the previously recorded value.
|
|
7
|
+
* The argument can be any JSON-serializable value — typically an object
|
|
8
|
+
* matching the shape of the example's `expected` field.
|
|
9
|
+
*/
|
|
10
|
+
export declare function logOutput(output: unknown): void;
|
|
11
|
+
/**
|
|
12
|
+
* Record an annotation on the current run.
|
|
13
|
+
*
|
|
14
|
+
* Annotations are collected during the test and posted to Phoenix as
|
|
15
|
+
* experiment evaluations after the test completes. The `name` is the
|
|
16
|
+
* Phoenix evaluation name; `score`, `label`, and `explanation` map to
|
|
17
|
+
* the standard Phoenix `EvaluationResult` fields.
|
|
18
|
+
*
|
|
19
|
+
* The annotation name `"pass"` is reserved — Phoenix eval tests always write
|
|
20
|
+
* a `pass` annotation derived from the test's assertion outcome, so a
|
|
21
|
+
* user-supplied annotation with that name would race / overwrite the
|
|
22
|
+
* built-in one. Such calls are silently ignored.
|
|
23
|
+
*/
|
|
24
|
+
export declare function logAnnotation(annotation: Annotation): void;
|
|
25
|
+
/**
|
|
26
|
+
* Run an evaluator object against the current test run and record the result.
|
|
27
|
+
*
|
|
28
|
+
* The evaluator may come from `@arizeai/phoenix-evals.createEvaluator`,
|
|
29
|
+
* `asExperimentEvaluator`, or any plain object with `{ name, evaluate }`.
|
|
30
|
+
* When `params` is omitted, the current test's `input`, recorded `output`,
|
|
31
|
+
* `expected`, `metadata`, and task `traceId` are supplied.
|
|
32
|
+
*/
|
|
33
|
+
export declare function evaluate<Params extends KVMap = EvaluationParams & KVMap, Result = EvaluationResult>(evaluator: Evaluator<Params, Result>, params?: Partial<Params> & KVMap): Promise<Result>;
|
|
34
|
+
/**
|
|
35
|
+
* Trace an evaluator function so its execution shows up as a separate
|
|
36
|
+
* `EVALUATOR` span in Phoenix and any `{ name, score }`-shaped return
|
|
37
|
+
* value is automatically captured as an annotation on the current run.
|
|
38
|
+
*
|
|
39
|
+
* The annotation name defaults to the traced function's name, falling
|
|
40
|
+
* back to `"evaluator"`.
|
|
41
|
+
*/
|
|
42
|
+
export declare function traceEvaluator<EvaluatorParams extends KVMap, EvaluatorResult>(fn: (params: EvaluatorParams) => EvaluatorResult | Promise<EvaluatorResult>, options?: {
|
|
43
|
+
name?: string;
|
|
44
|
+
}): (params: EvaluatorParams) => Promise<EvaluatorResult>;
|
|
45
|
+
/**
|
|
46
|
+
* Internal: persist all collected annotations for the run.
|
|
47
|
+
*
|
|
48
|
+
* Phoenix's `experiment_evaluations` endpoint is keyed by
|
|
49
|
+
* `(experiment_run_id, name)` so two annotations with the same name on
|
|
50
|
+
* the same run race each other. We collapse duplicates by name (last
|
|
51
|
+
* wins) up front, which makes the final state deterministic; the
|
|
52
|
+
* remaining writes target distinct names, so they post in parallel.
|
|
53
|
+
*/
|
|
54
|
+
export declare function flushAnnotations(runId: string | undefined, annotations: Annotation[], suite: SuiteState): Promise<void>;
|
|
55
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/testing/helpers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAEhB,SAAS,EACT,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAU/C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAS1D;AAED;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAC5B,MAAM,SAAS,KAAK,GAAG,gBAAgB,GAAG,KAAK,EAC/C,MAAM,GAAG,gBAAgB,EAEzB,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,GAC/B,OAAO,CAAC,MAAM,CAAC,CAoCjB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,eAAe,SAAS,KAAK,EAAE,eAAe,EAC3E,EAAE,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3E,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1B,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,eAAe,CAAC,CAoBvD;AAqFD;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,WAAW,EAAE,UAAU,EAAE,EACzB,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,IAAI,CAAC,CAWf"}
|