visual-ai-assertions 0.13.0 → 0.13.1

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/dist/index.cjs CHANGED
@@ -1853,8 +1853,12 @@ var AskResultSchema = import_zod.z.object({
1853
1853
  /**
1854
1854
  * For video inputs, the indices of frames the model relied on to answer.
1855
1855
  * Indices are 0-based and refer to entries in `frames.timestampsSeconds`.
1856
+ *
1857
+ * Nullable because providers with strict structured-output schemas (e.g. OpenAI)
1858
+ * must mark every field required and represent "no value" as `null` rather than
1859
+ * omitting the key, even for image inputs that were never asked to populate it.
1856
1860
  */
1857
- frameReferences: import_zod.z.array(import_zod.z.number().int().nonnegative()).optional(),
1861
+ frameReferences: import_zod.z.array(import_zod.z.number().int().nonnegative()).nullable().optional(),
1858
1862
  usage: UsageInfoSchema.optional()
1859
1863
  });
1860
1864
 
@@ -1906,7 +1910,11 @@ function parseCheckResponse(raw) {
1906
1910
  return reconcileCheckResult(result);
1907
1911
  }
1908
1912
  function parseAskResponse(raw) {
1909
- return parseResponse(raw, AskResponseSchema);
1913
+ const result = parseResponse(raw, AskResponseSchema);
1914
+ return {
1915
+ ...result,
1916
+ frameReferences: result.frameReferences ?? void 0
1917
+ };
1910
1918
  }
1911
1919
  function parseCompareResponse(raw) {
1912
1920
  return parseResponse(raw, CompareResponseSchema);