@ax-llm/ax 10.0.31 → 10.0.32

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/index.cjs CHANGED
@@ -3369,7 +3369,9 @@ var assertStreamingAssertions = (asserts, values, xstate, content, final) => {
3369
3369
  };
3370
3370
  var assertRequiredFields = (sig, values) => {
3371
3371
  const fields = sig.getOutputFields();
3372
- const missingFields = fields.filter((f) => !(f.name in values));
3372
+ const missingFields = fields.filter(
3373
+ (f) => !f.isOptional && !(f.name in values)
3374
+ );
3373
3375
  if (missingFields.length > 0) {
3374
3376
  throw new AxAssertionError({
3375
3377
  message: `Output must include: ${missingFields.map((f) => `\`${f.title}:\``).join(", ")}`,