generateSchemaToFile

public final static void generateSchemaToFile(SchemaGenerationRequest request, String outputPath)

Generates a JSON Schema for a class of documents using a vision model and writes it to a file, with default document settings.

Parameters

request

The schema generation request: the document type the schema must represent (required), an optional natural-language requirement, and up to five example documents used as grounding samples.

outputPath

Path to the output file receiving the JSON Schema.


public final static void generateSchemaToFile(SchemaGenerationRequest request, DocumentSettings settings, String outputPath)

Generates a JSON Schema for a class of documents using a vision model and writes it to a file, with explicit document settings.

Parameters

request

The schema generation request: the document type the schema must represent (required), an optional natural-language requirement, and up to five example documents used as grounding samples.

settings

Document settings carrying SchemaGenerationSettings (schema shape and target dialect) and the vision model connection.

outputPath

Path to the output file receiving the JSON Schema.