@wix/evalforge-types 0.85.0 → 0.86.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 +3 -6
- package/build/index.js.map +2 -2
- package/build/index.mjs +3 -6
- package/build/index.mjs.map +2 -2
- package/build/types/common/models.d.ts +3 -3
- package/build/types/evaluation/eval-result.d.ts +3 -3
- package/build/types/evaluation/eval-run.d.ts +6 -6
- package/build/types/target/agent.d.ts +9 -9
- package/package.json +2 -2
package/build/index.mjs
CHANGED
|
@@ -143,13 +143,10 @@ function normalizeModelId(modelId) {
|
|
|
143
143
|
var nullToUndefined = (val) => val === null ? void 0 : val;
|
|
144
144
|
var ModelConfigSchema = z4.object({
|
|
145
145
|
model: AnyModelSchema,
|
|
146
|
-
temperature: z4.preprocess(
|
|
147
|
-
|
|
148
|
-
z4.number().min(0).max(1).optional()
|
|
149
|
-
),
|
|
150
|
-
maxTokens: z4.preprocess(nullToUndefined, z4.number().min(1).optional()),
|
|
146
|
+
temperature: z4.preprocess(nullToUndefined, z4.number().min(0).max(1).optional()).optional(),
|
|
147
|
+
maxTokens: z4.preprocess(nullToUndefined, z4.number().min(1).optional()).optional(),
|
|
151
148
|
/** Number of agentic turns. 0 = unlimited (agent runs until done or timeout). */
|
|
152
|
-
maxTurns: z4.preprocess(nullToUndefined, z4.number().int().min(0).optional())
|
|
149
|
+
maxTurns: z4.preprocess(nullToUndefined, z4.number().int().min(0).optional()).optional()
|
|
153
150
|
});
|
|
154
151
|
|
|
155
152
|
// src/common/rule.ts
|