@mastra/schema-compat 0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806184630 → 0.0.0-vnext-20251104230439

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +131 -1
  2. package/README.md +0 -4
  3. package/dist/chunk-5WM4A32G.cjs +83 -0
  4. package/dist/chunk-5WM4A32G.cjs.map +1 -0
  5. package/dist/chunk-U2HXWNAF.js +77 -0
  6. package/dist/chunk-U2HXWNAF.js.map +1 -0
  7. package/dist/index.cjs +4560 -271
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.ts +5 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +4558 -272
  12. package/dist/index.js.map +1 -1
  13. package/dist/json-schema.d.ts +4 -0
  14. package/dist/json-schema.d.ts.map +1 -0
  15. package/dist/provider-compats/anthropic.d.ts +6 -4
  16. package/dist/provider-compats/anthropic.d.ts.map +1 -1
  17. package/dist/provider-compats/deepseek.d.ts +6 -4
  18. package/dist/provider-compats/deepseek.d.ts.map +1 -1
  19. package/dist/provider-compats/google.d.ts +6 -4
  20. package/dist/provider-compats/google.d.ts.map +1 -1
  21. package/dist/provider-compats/meta.d.ts +6 -4
  22. package/dist/provider-compats/meta.d.ts.map +1 -1
  23. package/dist/provider-compats/openai-reasoning.d.ts +6 -4
  24. package/dist/provider-compats/openai-reasoning.d.ts.map +1 -1
  25. package/dist/provider-compats/openai.d.ts +6 -4
  26. package/dist/provider-compats/openai.d.ts.map +1 -1
  27. package/dist/schema-compatibility-v3.d.ts +287 -0
  28. package/dist/schema-compatibility-v3.d.ts.map +1 -0
  29. package/dist/schema-compatibility-v4.d.ts +278 -0
  30. package/dist/schema-compatibility-v4.d.ts.map +1 -0
  31. package/dist/schema-compatibility.d.ts +81 -165
  32. package/dist/schema-compatibility.d.ts.map +1 -1
  33. package/dist/types.d.ts +7 -0
  34. package/dist/types.d.ts.map +1 -0
  35. package/dist/utils-test-suite.d.ts +2 -0
  36. package/dist/utils-test-suite.d.ts.map +1 -0
  37. package/dist/utils.d.ts +18 -6
  38. package/dist/utils.d.ts.map +1 -1
  39. package/dist/zod-to-json-test-suite.d.ts +6 -0
  40. package/dist/zod-to-json-test-suite.d.ts.map +1 -0
  41. package/dist/zod-to-json.cjs +12 -0
  42. package/dist/zod-to-json.cjs.map +1 -0
  43. package/dist/zod-to-json.d.ts +6 -0
  44. package/dist/zod-to-json.d.ts.map +1 -0
  45. package/dist/zod-to-json.js +3 -0
  46. package/dist/zod-to-json.js.map +1 -0
  47. package/dist/zodTypes.d.ts +21 -0
  48. package/dist/zodTypes.d.ts.map +1 -0
  49. package/package.json +33 -10
  50. package/.turbo/turbo-build.log +0 -4
  51. package/eslint.config.js +0 -6
  52. package/src/index.ts +0 -39
  53. package/src/provider-compats/anthropic.ts +0 -44
  54. package/src/provider-compats/deepseek.ts +0 -35
  55. package/src/provider-compats/google.ts +0 -63
  56. package/src/provider-compats/meta.ts +0 -36
  57. package/src/provider-compats/openai-reasoning.ts +0 -91
  58. package/src/provider-compats/openai.ts +0 -56
  59. package/src/provider-compats.test.ts +0 -312
  60. package/src/schema-compatibility.test.ts +0 -471
  61. package/src/schema-compatibility.ts +0 -588
  62. package/src/utils.test.ts +0 -434
  63. package/src/utils.ts +0 -205
  64. package/tsconfig.build.json +0 -9
  65. package/tsconfig.json +0 -5
  66. package/tsup.config.ts +0 -17
  67. package/vitest.config.ts +0 -7
@@ -1,588 +0,0 @@
1
- import type { Schema, LanguageModelV1 } from 'ai';
2
- import type { JSONSchema7 } from 'json-schema';
3
- import { z, ZodOptional, ZodObject, ZodArray, ZodUnion, ZodString, ZodNumber, ZodDate, ZodDefault, ZodNull } from 'zod';
4
- import type { ZodTypeAny } from 'zod';
5
- import type { Targets } from 'zod-to-json-schema';
6
- import { convertZodSchemaToAISDKSchema } from './utils';
7
-
8
- /**
9
- * All supported string validation check types that can be processed or converted to descriptions.
10
- * @constant
11
- */
12
- export const ALL_STRING_CHECKS = ['regex', 'emoji', 'email', 'url', 'uuid', 'cuid', 'min', 'max'] as const;
13
-
14
- /**
15
- * All supported number validation check types that can be processed or converted to descriptions.
16
- * @constant
17
- */
18
- export const ALL_NUMBER_CHECKS = [
19
- 'min', // gte internally
20
- 'max', // lte internally
21
- 'multipleOf',
22
- ] as const;
23
-
24
- /**
25
- * All supported array validation check types that can be processed or converted to descriptions.
26
- * @constant
27
- */
28
- export const ALL_ARRAY_CHECKS = ['min', 'max', 'length'] as const;
29
-
30
- export const isOptional = (v: ZodTypeAny): v is ZodOptional<any> => v instanceof ZodOptional;
31
- export const isObj = (v: ZodTypeAny): v is ZodObject<any, any, any> => v instanceof ZodObject;
32
- export const isNull = (v: ZodTypeAny): v is ZodNull => v instanceof ZodNull;
33
- export const isArr = (v: ZodTypeAny): v is ZodArray<any, any> => v instanceof ZodArray;
34
- export const isUnion = (v: ZodTypeAny): v is ZodUnion<[ZodTypeAny, ...ZodTypeAny[]]> => v instanceof ZodUnion;
35
- export const isString = (v: ZodTypeAny): v is ZodString => v instanceof ZodString;
36
- export const isNumber = (v: ZodTypeAny): v is ZodNumber => v instanceof ZodNumber;
37
- export const isDate = (v: ZodTypeAny): v is ZodDate => v instanceof ZodDate;
38
- export const isDefault = (v: ZodTypeAny): v is ZodDefault<any> => v instanceof ZodDefault;
39
-
40
- /**
41
- * Zod types that are not supported by most AI model providers and should be avoided.
42
- * @constant
43
- */
44
- export const UNSUPPORTED_ZOD_TYPES = ['ZodIntersection', 'ZodNever', 'ZodNull', 'ZodTuple', 'ZodUndefined'] as const;
45
-
46
- /**
47
- * Zod types that are generally supported by AI model providers.
48
- * @constant
49
- */
50
- export const SUPPORTED_ZOD_TYPES = [
51
- 'ZodObject',
52
- 'ZodArray',
53
- 'ZodUnion',
54
- 'ZodString',
55
- 'ZodNumber',
56
- 'ZodDate',
57
- 'ZodAny',
58
- 'ZodDefault',
59
- ] as const;
60
-
61
- /**
62
- * All Zod types (both supported and unsupported).
63
- * @constant
64
- */
65
- export const ALL_ZOD_TYPES = [...SUPPORTED_ZOD_TYPES, ...UNSUPPORTED_ZOD_TYPES] as const;
66
-
67
- /**
68
- * Type representing string validation checks.
69
- */
70
- export type StringCheckType = (typeof ALL_STRING_CHECKS)[number];
71
-
72
- /**
73
- * Type representing number validation checks.
74
- */
75
- export type NumberCheckType = (typeof ALL_NUMBER_CHECKS)[number];
76
-
77
- /**
78
- * Type representing array validation checks.
79
- */
80
- export type ArrayCheckType = (typeof ALL_ARRAY_CHECKS)[number];
81
-
82
- /**
83
- * Type representing unsupported Zod schema types.
84
- */
85
- export type UnsupportedZodType = (typeof UNSUPPORTED_ZOD_TYPES)[number];
86
-
87
- /**
88
- * Type representing supported Zod schema types.
89
- */
90
- export type SupportedZodType = (typeof SUPPORTED_ZOD_TYPES)[number];
91
-
92
- /**
93
- * Type representing all Zod schema types (supported and unsupported).
94
- */
95
- export type AllZodType = (typeof ALL_ZOD_TYPES)[number];
96
-
97
- /**
98
- * Utility type to extract the shape of a Zod object schema.
99
- */
100
- export type ZodShape<T extends z.AnyZodObject> = T['shape'];
101
-
102
- /**
103
- * Utility type to extract the keys from a Zod object shape.
104
- */
105
- export type ShapeKey<T extends z.AnyZodObject> = keyof ZodShape<T>;
106
-
107
- /**
108
- * Utility type to extract the value types from a Zod object shape.
109
- */
110
- export type ShapeValue<T extends z.AnyZodObject> = ZodShape<T>[ShapeKey<T>];
111
-
112
- // Add constraint types at the top
113
-
114
- type StringConstraints = {
115
- minLength?: number;
116
- maxLength?: number;
117
- email?: boolean;
118
- url?: boolean;
119
- uuid?: boolean;
120
- cuid?: boolean;
121
- emoji?: boolean;
122
- regex?: { pattern: string; flags?: string };
123
- };
124
-
125
- type NumberConstraints = {
126
- gt?: number;
127
- gte?: number;
128
- lt?: number;
129
- lte?: number;
130
- multipleOf?: number;
131
- };
132
-
133
- type ArrayConstraints = {
134
- minLength?: number;
135
- maxLength?: number;
136
- exactLength?: number;
137
- };
138
-
139
- type DateConstraints = {
140
- minDate?: string;
141
- maxDate?: string;
142
- dateFormat?: string;
143
- };
144
-
145
- /**
146
- * Abstract base class for creating schema compatibility layers for different AI model providers.
147
- *
148
- * This class provides a framework for transforming Zod schemas to work with specific AI model
149
- * provider requirements and limitations. Each provider may have different support levels for
150
- * JSON Schema features, validation constraints, and data types.
151
- *
152
- * @abstract
153
- *
154
- * @example
155
- * ```typescript
156
- * import { SchemaCompatLayer } from '@mastra/schema-compat';
157
- * import type { LanguageModelV1 } from 'ai';
158
- *
159
- * class CustomProviderCompat extends SchemaCompatLayer {
160
- * constructor(model: LanguageModelV1) {
161
- * super(model);
162
- * }
163
- *
164
- * shouldApply(): boolean {
165
- * return this.getModel().provider === 'custom-provider';
166
- * }
167
- *
168
- * getSchemaTarget() {
169
- * return 'jsonSchema7';
170
- * }
171
- *
172
- * processZodType<T extends z.AnyZodObject>(value: z.ZodTypeAny): ShapeValue<T> {
173
- * // Custom processing logic for this provider
174
- * switch (value._def.typeName) {
175
- * case 'ZodString':
176
- * return this.defaultZodStringHandler(value, ['email', 'url']);
177
- * default:
178
- * return this.defaultUnsupportedZodTypeHandler(value);
179
- * }
180
- * }
181
- * }
182
- * ```
183
- */
184
- export abstract class SchemaCompatLayer {
185
- private model: LanguageModelV1;
186
-
187
- /**
188
- * Creates a new schema compatibility instance.
189
- *
190
- * @param model - The language model this compatibility layer applies to
191
- */
192
- constructor(model: LanguageModelV1) {
193
- this.model = model;
194
- }
195
-
196
- /**
197
- * Gets the language model associated with this compatibility layer.
198
- *
199
- * @returns The language model instance
200
- */
201
- getModel(): LanguageModelV1 {
202
- return this.model;
203
- }
204
-
205
- /**
206
- * Determines whether this compatibility layer should be applied for the current model.
207
- *
208
- * @returns True if this compatibility layer should be used, false otherwise
209
- * @abstract
210
- */
211
- abstract shouldApply(): boolean;
212
-
213
- /**
214
- * Returns the JSON Schema target format for this provider.
215
- *
216
- * @returns The schema target format, or undefined to use the default 'jsonSchema7'
217
- * @abstract
218
- */
219
- abstract getSchemaTarget(): Targets | undefined;
220
-
221
- /**
222
- * Processes a specific Zod type according to the provider's requirements.
223
- *
224
- * @param value - The Zod type to process
225
- * @returns The processed Zod type
226
- * @abstract
227
- */
228
- abstract processZodType(value: ZodTypeAny): ZodTypeAny;
229
-
230
- /**
231
- * Default handler for Zod object types. Recursively processes all properties in the object.
232
- *
233
- * @param value - The Zod object to process
234
- * @returns The processed Zod object
235
- */
236
- public defaultZodObjectHandler(
237
- value: ZodObject<any, any, any>,
238
- options: { passthrough?: boolean } = { passthrough: true },
239
- ): ZodObject<any, any, any> {
240
- const processedShape = Object.entries(value.shape).reduce<Record<string, ZodTypeAny>>((acc, [key, propValue]) => {
241
- acc[key] = this.processZodType(propValue as ZodTypeAny);
242
- return acc;
243
- }, {});
244
-
245
- let result: ZodObject<any, any, any> = z.object(processedShape);
246
-
247
- if (value._def.unknownKeys === 'strict') {
248
- result = result.strict();
249
- }
250
- if (value._def.catchall && !(value._def.catchall instanceof z.ZodNever)) {
251
- result = result.catchall(value._def.catchall);
252
- }
253
-
254
- if (value.description) {
255
- result = result.describe(value.description);
256
- }
257
-
258
- if (options.passthrough && value._def.unknownKeys === 'passthrough') {
259
- result = result.passthrough();
260
- }
261
-
262
- return result;
263
- }
264
-
265
- /**
266
- * Merges validation constraints into a parameter description.
267
- *
268
- * This helper method converts validation constraints that may not be supported
269
- * by a provider into human-readable descriptions.
270
- *
271
- * @param description - The existing parameter description
272
- * @param constraints - The validation constraints to merge
273
- * @returns The updated description with constraints, or undefined if no constraints
274
- */
275
- public mergeParameterDescription(
276
- description: string | undefined,
277
- constraints:
278
- | NumberConstraints
279
- | StringConstraints
280
- | ArrayConstraints
281
- | DateConstraints
282
- | { defaultValue?: unknown },
283
- ): string | undefined {
284
- if (Object.keys(constraints).length > 0) {
285
- return (description ? description + '\n' : '') + JSON.stringify(constraints);
286
- } else {
287
- return description;
288
- }
289
- }
290
-
291
- /**
292
- * Default handler for unsupported Zod types. Throws an error for specified unsupported types.
293
- *
294
- * @param value - The Zod type to check
295
- * @param throwOnTypes - Array of type names to throw errors for
296
- * @returns The original value if not in the throw list
297
- * @throws Error if the type is in the unsupported list
298
- */
299
- public defaultUnsupportedZodTypeHandler<T extends z.AnyZodObject>(
300
- value: z.ZodTypeAny,
301
- throwOnTypes: readonly UnsupportedZodType[] = UNSUPPORTED_ZOD_TYPES,
302
- ): ShapeValue<T> {
303
- if (throwOnTypes.includes(value._def?.typeName as UnsupportedZodType)) {
304
- throw new Error(`${this.model.modelId} does not support zod type: ${value._def?.typeName}`);
305
- }
306
- return value as ShapeValue<T>;
307
- }
308
-
309
- /**
310
- * Default handler for Zod array types. Processes array constraints according to provider support.
311
- *
312
- * @param value - The Zod array to process
313
- * @param handleChecks - Array constraints to convert to descriptions vs keep as validation
314
- * @returns The processed Zod array
315
- */
316
- public defaultZodArrayHandler(
317
- value: ZodArray<any, any>,
318
- handleChecks: readonly ArrayCheckType[] = ALL_ARRAY_CHECKS,
319
- ): ZodArray<any, any> {
320
- const zodArrayDef = value._def;
321
- const processedType = this.processZodType(zodArrayDef.type);
322
-
323
- let result = z.array(processedType);
324
-
325
- const constraints: ArrayConstraints = {};
326
-
327
- if (zodArrayDef.minLength?.value !== undefined) {
328
- if (handleChecks.includes('min')) {
329
- constraints.minLength = zodArrayDef.minLength.value;
330
- } else {
331
- result = result.min(zodArrayDef.minLength.value);
332
- }
333
- }
334
-
335
- if (zodArrayDef.maxLength?.value !== undefined) {
336
- if (handleChecks.includes('max')) {
337
- constraints.maxLength = zodArrayDef.maxLength.value;
338
- } else {
339
- result = result.max(zodArrayDef.maxLength.value);
340
- }
341
- }
342
-
343
- if (zodArrayDef.exactLength?.value !== undefined) {
344
- if (handleChecks.includes('length')) {
345
- constraints.exactLength = zodArrayDef.exactLength.value;
346
- } else {
347
- result = result.length(zodArrayDef.exactLength.value);
348
- }
349
- }
350
-
351
- const description = this.mergeParameterDescription(value.description, constraints);
352
- if (description) {
353
- result = result.describe(description);
354
- }
355
- return result;
356
- }
357
-
358
- /**
359
- * Default handler for Zod union types. Processes all union options.
360
- *
361
- * @param value - The Zod union to process
362
- * @returns The processed Zod union
363
- * @throws Error if union has fewer than 2 options
364
- */
365
- public defaultZodUnionHandler(value: ZodUnion<[ZodTypeAny, ...ZodTypeAny[]]>): ZodTypeAny {
366
- const processedOptions = value._def.options.map((option: ZodTypeAny) => this.processZodType(option));
367
- if (processedOptions.length < 2) throw new Error('Union must have at least 2 options');
368
- let result = z.union(processedOptions as [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]);
369
- if (value.description) {
370
- result = result.describe(value.description);
371
- }
372
- return result;
373
- }
374
-
375
- /**
376
- * Default handler for Zod string types. Processes string validation constraints.
377
- *
378
- * @param value - The Zod string to process
379
- * @param handleChecks - String constraints to convert to descriptions vs keep as validation
380
- * @returns The processed Zod string
381
- */
382
- public defaultZodStringHandler(
383
- value: ZodString,
384
- handleChecks: readonly StringCheckType[] = ALL_STRING_CHECKS,
385
- ): ZodString {
386
- const constraints: StringConstraints = {};
387
- const checks = value._def.checks || [];
388
- type ZodStringCheck = (typeof checks)[number];
389
- const newChecks: ZodStringCheck[] = [];
390
- for (const check of checks) {
391
- if ('kind' in check) {
392
- if (handleChecks.includes(check.kind as StringCheckType)) {
393
- switch (check.kind) {
394
- case 'regex': {
395
- constraints.regex = {
396
- pattern: check.regex.source,
397
- flags: check.regex.flags,
398
- };
399
- break;
400
- }
401
- case 'emoji': {
402
- constraints.emoji = true;
403
- break;
404
- }
405
- case 'email': {
406
- constraints.email = true;
407
- break;
408
- }
409
- case 'url': {
410
- constraints.url = true;
411
- break;
412
- }
413
- case 'uuid': {
414
- constraints.uuid = true;
415
- break;
416
- }
417
- case 'cuid': {
418
- constraints.cuid = true;
419
- break;
420
- }
421
- case 'min': {
422
- constraints.minLength = check.value;
423
- break;
424
- }
425
- case 'max': {
426
- constraints.maxLength = check.value;
427
- break;
428
- }
429
- }
430
- } else {
431
- newChecks.push(check);
432
- }
433
- }
434
- }
435
- let result = z.string();
436
- for (const check of newChecks) {
437
- result = result._addCheck(check);
438
- }
439
- const description = this.mergeParameterDescription(value.description, constraints);
440
- if (description) {
441
- result = result.describe(description);
442
- }
443
- return result;
444
- }
445
-
446
- /**
447
- * Default handler for Zod number types. Processes number validation constraints.
448
- *
449
- * @param value - The Zod number to process
450
- * @param handleChecks - Number constraints to convert to descriptions vs keep as validation
451
- * @returns The processed Zod number
452
- */
453
- public defaultZodNumberHandler(
454
- value: ZodNumber,
455
- handleChecks: readonly NumberCheckType[] = ALL_NUMBER_CHECKS,
456
- ): ZodNumber {
457
- const constraints: NumberConstraints = {};
458
- const checks = value._def.checks || [];
459
- type ZodNumberCheck = (typeof checks)[number];
460
- const newChecks: ZodNumberCheck[] = [];
461
- for (const check of checks) {
462
- if ('kind' in check) {
463
- if (handleChecks.includes(check.kind as NumberCheckType)) {
464
- switch (check.kind) {
465
- case 'min':
466
- if (check.inclusive) {
467
- constraints.gte = check.value;
468
- } else {
469
- constraints.gt = check.value;
470
- }
471
- break;
472
- case 'max':
473
- if (check.inclusive) {
474
- constraints.lte = check.value;
475
- } else {
476
- constraints.lt = check.value;
477
- }
478
- break;
479
- case 'multipleOf': {
480
- constraints.multipleOf = check.value;
481
- break;
482
- }
483
- }
484
- } else {
485
- newChecks.push(check);
486
- }
487
- }
488
- }
489
- let result = z.number();
490
- for (const check of newChecks) {
491
- switch (check.kind) {
492
- case 'int':
493
- result = result.int();
494
- break;
495
- case 'finite':
496
- result = result.finite();
497
- break;
498
- default:
499
- result = result._addCheck(check);
500
- }
501
- }
502
- const description = this.mergeParameterDescription(value.description, constraints);
503
- if (description) {
504
- result = result.describe(description);
505
- }
506
- return result;
507
- }
508
-
509
- /**
510
- * Default handler for Zod date types. Converts dates to ISO strings with constraint descriptions.
511
- *
512
- * @param value - The Zod date to process
513
- * @returns A Zod string schema representing the date in ISO format
514
- */
515
- public defaultZodDateHandler(value: ZodDate): ZodString {
516
- const constraints: DateConstraints = {};
517
- const checks = value._def.checks || [];
518
- type ZodDateCheck = (typeof checks)[number];
519
- const newChecks: ZodDateCheck[] = [];
520
- for (const check of checks) {
521
- if ('kind' in check) {
522
- switch (check.kind) {
523
- case 'min':
524
- const minDate = new Date(check.value);
525
- if (!isNaN(minDate.getTime())) {
526
- constraints.minDate = minDate.toISOString();
527
- }
528
- break;
529
- case 'max':
530
- const maxDate = new Date(check.value);
531
- if (!isNaN(maxDate.getTime())) {
532
- constraints.maxDate = maxDate.toISOString();
533
- }
534
- break;
535
- default:
536
- newChecks.push(check);
537
- }
538
- }
539
- }
540
- constraints.dateFormat = 'date-time';
541
- let result = z.string().describe('date-time');
542
- const description = this.mergeParameterDescription(value.description, constraints);
543
- if (description) {
544
- result = result.describe(description);
545
- }
546
- return result;
547
- }
548
-
549
- /**
550
- * Default handler for Zod optional types. Processes the inner type and maintains optionality.
551
- *
552
- * @param value - The Zod optional to process
553
- * @param handleTypes - Types that should be processed vs passed through
554
- * @returns The processed Zod optional
555
- */
556
- public defaultZodOptionalHandler(
557
- value: ZodOptional<any>,
558
- handleTypes: readonly AllZodType[] = SUPPORTED_ZOD_TYPES,
559
- ): ZodTypeAny {
560
- if (handleTypes.includes(value._def.innerType._def.typeName as AllZodType)) {
561
- return this.processZodType(value._def.innerType).optional();
562
- } else {
563
- return value;
564
- }
565
- }
566
-
567
- /**
568
- * Processes a Zod object schema and converts it to an AI SDK Schema.
569
- *
570
- * @param zodSchema - The Zod object schema to process
571
- * @returns An AI SDK Schema with provider-specific compatibility applied
572
- */
573
- public processToAISDKSchema(zodSchema: z.ZodSchema): Schema {
574
- const processedSchema = this.processZodType(zodSchema);
575
-
576
- return convertZodSchemaToAISDKSchema(processedSchema, this.getSchemaTarget());
577
- }
578
-
579
- /**
580
- * Processes a Zod object schema and converts it to a JSON Schema.
581
- *
582
- * @param zodSchema - The Zod object schema to process
583
- * @returns A JSONSchema7 object with provider-specific compatibility applied
584
- */
585
- public processToJSONSchema(zodSchema: z.ZodSchema): JSONSchema7 {
586
- return this.processToAISDKSchema(zodSchema).jsonSchema;
587
- }
588
- }