Genkit JS API reference
    Preparing search index...

    Function toJsonSchema

    • Converts a Zod schema into a JSON schema, utilizing an in-memory cache for known objects.

      Parameters

      • options: ProvidedSchema

        Provide a json schema and/or zod schema. JSON schema has priority.

      Returns any

      A JSON schema.