@wix/evalforge-types 0.99.0 → 0.100.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 +20 -1
- package/build/index.js.map +2 -2
- package/build/index.mjs +17 -1
- package/build/index.mjs.map +2 -2
- package/build/types/assertion/assertion.d.ts +13 -0
- package/package.json +2 -2
package/build/index.mjs
CHANGED
|
@@ -961,10 +961,23 @@ var CostConfigSchema = z25.strictObject({
|
|
|
961
961
|
/** Maximum allowed cost in USD */
|
|
962
962
|
maxCostUsd: z25.number().positive()
|
|
963
963
|
});
|
|
964
|
+
var ExpectedParamPrimitiveSchema = z25.union([
|
|
965
|
+
z25.string(),
|
|
966
|
+
z25.number(),
|
|
967
|
+
z25.boolean()
|
|
968
|
+
]);
|
|
969
|
+
var ExpectedParamValueSchema = z25.union([
|
|
970
|
+
ExpectedParamPrimitiveSchema,
|
|
971
|
+
z25.array(ExpectedParamPrimitiveSchema)
|
|
972
|
+
]);
|
|
973
|
+
var ExpectedParamsSchema = z25.record(
|
|
974
|
+
z25.string(),
|
|
975
|
+
ExpectedParamValueSchema
|
|
976
|
+
);
|
|
964
977
|
var ToolCalledWithParamConfigSchema = z25.strictObject({
|
|
965
978
|
/** Name of the tool that must have been called */
|
|
966
979
|
toolName: z25.string().min(1),
|
|
967
|
-
/** JSON string of key-value pairs for expected parameters
|
|
980
|
+
/** JSON string of key-value pairs for expected parameters. Primitive values are substring-matched against the actual argument; array values are matched by containment (every element must appear). Optional — when omitted, only checks tool presence. */
|
|
968
981
|
expectedParams: z25.string().min(1).optional(),
|
|
969
982
|
/** If true, the matching tool call must also have succeeded (step.success === true) */
|
|
970
983
|
requireSuccess: z25.boolean().optional()
|
|
@@ -2398,6 +2411,9 @@ export {
|
|
|
2398
2411
|
EvaluationResultSchema,
|
|
2399
2412
|
ExecutionTraceSchema,
|
|
2400
2413
|
ExpectedFileSchema,
|
|
2414
|
+
ExpectedParamPrimitiveSchema,
|
|
2415
|
+
ExpectedParamValueSchema,
|
|
2416
|
+
ExpectedParamsSchema,
|
|
2401
2417
|
ExtraFileSchema,
|
|
2402
2418
|
FileContentCheckSchema,
|
|
2403
2419
|
FileContentTestSchema,
|