@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 +3 -1
- package/index.cjs.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3275,7 +3275,9 @@ var assertStreamingAssertions = (asserts, values, xstate, content, final) => {
|
|
|
3275
3275
|
};
|
|
3276
3276
|
var assertRequiredFields = (sig, values) => {
|
|
3277
3277
|
const fields = sig.getOutputFields();
|
|
3278
|
-
const missingFields = fields.filter(
|
|
3278
|
+
const missingFields = fields.filter(
|
|
3279
|
+
(f) => !f.isOptional && !(f.name in values)
|
|
3280
|
+
);
|
|
3279
3281
|
if (missingFields.length > 0) {
|
|
3280
3282
|
throw new AxAssertionError({
|
|
3281
3283
|
message: `Output must include: ${missingFields.map((f) => `\`${f.title}:\``).join(", ")}`,
|