langchain.js
    Preparing search index...
    • Converts a Zod schema or JSON schema to a JSON schema.

      Parameters

      • schema: JsonSchema7Type | InteropZodType

        The schema to convert.

      • Optionalparams: RegistryToJSONSchemaParams

        The parameters to pass to the toJSONSchema function.

      Returns JsonSchema7Type

      The converted schema.