@wix/evalforge-types 0.70.0 → 0.72.0
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/build/index.js +14 -1
- package/build/index.js.map +2 -2
- package/build/index.mjs +13 -1
- package/build/index.mjs.map +2 -2
- package/build/types/agent/adapter.d.ts +3 -1
- package/build/types/scenario/test-scenario.d.ts +42 -0
- package/package.json +2 -2
package/build/index.mjs
CHANGED
|
@@ -769,6 +769,15 @@ function validateAssertionConfig(type, config) {
|
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
// src/scenario/test-scenario.ts
|
|
772
|
+
var MAX_IMAGE_BASE64_LENGTH = 4 * Math.ceil(2 * 1024 * 1024 / 3);
|
|
773
|
+
var TriggerPromptImageSchema = z23.object({
|
|
774
|
+
/** Base64-encoded image data (no data URL prefix) */
|
|
775
|
+
base64: z23.string().max(MAX_IMAGE_BASE64_LENGTH, "Image exceeds 2 MB size limit"),
|
|
776
|
+
/** MIME type of the image */
|
|
777
|
+
mediaType: z23.enum(["image/jpeg", "image/png", "image/gif", "image/webp"]),
|
|
778
|
+
/** Original filename of the image */
|
|
779
|
+
name: z23.string()
|
|
780
|
+
});
|
|
772
781
|
var ExpectedFileSchema = z23.object({
|
|
773
782
|
/** Relative path where the file should be created */
|
|
774
783
|
path: z23.string(),
|
|
@@ -787,7 +796,9 @@ var TestScenarioSchema = TenantEntitySchema.extend({
|
|
|
787
796
|
/** Linked assertions with per-scenario parameter values */
|
|
788
797
|
assertionLinks: z23.array(ScenarioAssertionLinkSchema).optional(),
|
|
789
798
|
/** Tags for categorisation and filtering */
|
|
790
|
-
tags: z23.array(z23.string()).optional()
|
|
799
|
+
tags: z23.array(z23.string()).optional(),
|
|
800
|
+
/** Base64-encoded images attached to the trigger prompt (max 3) */
|
|
801
|
+
triggerPromptImages: z23.array(TriggerPromptImageSchema).max(3).optional()
|
|
791
802
|
});
|
|
792
803
|
var CreateTestScenarioInputSchema = TestScenarioSchema.omit({
|
|
793
804
|
id: true,
|
|
@@ -1874,6 +1885,7 @@ export {
|
|
|
1874
1885
|
ToolTestSchema,
|
|
1875
1886
|
ToolUseBlockSchema,
|
|
1876
1887
|
TriggerMetadataSchema,
|
|
1888
|
+
TriggerPromptImageSchema,
|
|
1877
1889
|
TriggerSchema,
|
|
1878
1890
|
TriggerType,
|
|
1879
1891
|
UpdateAgentInputSchema,
|