UNPKG

@mastra/schema-compat

Version:

Tool schema compatibility layer for Mastra.ai

20 lines 1.11 kB
import type { JSONSchema7 } from '../_types/@types_json-schema/index.d.ts'; import type { ZodType as ZodTypeV3 } from 'zod/v3'; import type { ZodType as ZodTypeV4 } from 'zod/v4'; import type { Targets } from 'zod-to-json-schema'; import { SchemaCompatLayer } from '../schema-compatibility.js'; import type { PublicSchema, ZodType } from '../schema.types.js'; import type { StandardSchemaWithJSON } from '../standard-schema/standard-schema.types.js'; import type { ModelInformation } from '../types.js'; export declare class AnthropicSchemaCompatLayer extends SchemaCompatLayer { #private; constructor(model: ModelInformation); getSchemaTarget(): Targets | undefined; shouldApply(): boolean; processZodType(value: ZodType): ZodType; processToAISDKSchema(zodSchema: ZodTypeV3 | ZodTypeV4): import("../_types/@internal_ai-sdk-v4/dist/index.d.ts").Schema<any>; processToCompatSchema<T>(schema: PublicSchema<T>): StandardSchemaWithJSON<T>; preProcessJSONNode(schema: JSONSchema7): void; postProcessJSONNode(schema: JSONSchema7): void; } //# sourceMappingURL=anthropic.d.ts.map