visual-ai-assertions 0.7.0 → 0.7.2

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
@@ -44,6 +44,7 @@ __export(index_exports, {
44
44
  Layout: () => Layout,
45
45
  Model: () => Model,
46
46
  Provider: () => Provider,
47
+ ReasoningEffort: () => ReasoningEffort,
47
48
  StatementResultSchema: () => StatementResultSchema,
48
49
  UsageInfoSchema: () => UsageInfoSchema,
49
50
  VisualAIAssertionError: () => VisualAIAssertionError,
@@ -65,6 +66,12 @@ __export(index_exports, {
65
66
  module.exports = __toCommonJS(index_exports);
66
67
 
67
68
  // src/constants.ts
69
+ var ReasoningEffort = {
70
+ LOW: "low",
71
+ MEDIUM: "medium",
72
+ HIGH: "high",
73
+ XHIGH: "xhigh"
74
+ };
68
75
  var Provider = {
69
76
  ANTHROPIC: "anthropic",
70
77
  OPENAI: "openai",
@@ -732,11 +739,9 @@ var OpenAIDriver = class {
732
739
  try {
733
740
  const format = options?.responseSchema ? {
734
741
  type: "json_schema",
735
- json_schema: {
736
- name: "visual_ai_response",
737
- strict: true,
738
- schema: options.responseSchema
739
- }
742
+ name: "visual_ai_response",
743
+ strict: true,
744
+ schema: options.responseSchema
740
745
  } : { type: "json_object" };
741
746
  const requestParams = {
742
747
  model: this.model,
@@ -1546,6 +1551,7 @@ function assertVisualCompareResult(result, label) {
1546
1551
  Layout,
1547
1552
  Model,
1548
1553
  Provider,
1554
+ ReasoningEffort,
1549
1555
  StatementResultSchema,
1550
1556
  UsageInfoSchema,
1551
1557
  VisualAIAssertionError,