extract

public final ExtractResult extract()

Extracts structured data from the document with an AI model, shaped by the JSON Schema you supply. Options come from the document's (and the settings it aliases), falling back to the SDK-wide settings, like every other SDK operation.

Return

The artifacts the run produced, under the same names the hosted service uses.

Throws

Thrown when this instance has been disposed.

Thrown when the license does not cover a capability this call runs.

Thrown when a setting is rejected as invalid input.

Thrown when the run fails; the message ends with the failure code.