extractStructuredToFile

public final void extractStructuredToFile(StructuredExtractionRequest request, String outputPath)

Extracts structured data from the document, shaped to the JSON Schema carried by the 's {"schema": ...} envelope, and writes the JSON result to a file. See for the result shape.

Parameters

request

The extraction request carrying the schema envelope (required) and optional instructions.

outputPath

Path to the output file.