@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.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
- nullToUndefined,
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