AiProcessingSettings

public final class AiProcessingSettings

Settings for AiProcessing. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.

Functions

Link copied to clipboard
public final VlmProvider getAiProvider()
The primary AI provider for extraction/classification.
Link copied to clipboard
public final String getApiKey()
API key for the configured provider.
Link copied to clipboard
public final String getEndpoint()
Endpoint URL.
Link copied to clipboard
public final VlmProvider getFallbackAiProvider()
Optional secondary AI provider used to transparently retry a request when the primary returns no content (content filtering) or is temporarily unavailable.
Link copied to clipboard
public final boolean getIncludeCompositeConfidence()
(Schema v1 only.) Daemon-level default for whether the legacy rolled-up composite number is attached to result.json metadata leaves as confidence.
Link copied to clipboard
public final boolean getIncludeConfidence()
Daemon-level default for whether AI processing capacities emit confidence output - the confidence.json sidecar and the per-field confidence signals on result.json metadata.
Link copied to clipboard
public final boolean getIncludeGroundedness()
Daemon-level default for whether the NLI groundedness score is computed and surfaced as the primary confidence.groundedness (schema v2 only).
Link copied to clipboard
public final boolean getIncludePageImages()
Opt-in (default ): when true, every page of the source document is rendered to an image and sent to the model alongside the IR-lite text (multimodal extraction).
Link copied to clipboard
public final boolean getIncludeSourceLocations()
Whether extraction grounds each extracted field back to its source location in the document — the metadata node of result.json with per-field match labels and source bounding boxes.
Link copied to clipboard
public final Integer getMaxAttempts()
Maximum retry attempts on structured-output failure.
Link copied to clipboard
public final int getMaxInputTokens()
Input-token budget per model call.
Link copied to clipboard
public final int getMaxParallelCalls()
Maximum number of windowed extraction calls to run concurrently.
Link copied to clipboard
public final int getMetadataSchemaVersion()
Daemon-level default for the result.json metadata schema version: 1 = the legacy flat shape (per-field match / confidenceComponents / opt-in composite confidence); 2 = the simplified citation + confidence shape (primary groundedness, ocr, boolean schemaValid).
Link copied to clipboard
public final String getModel()
Model identifier (e.g.
Link copied to clipboard
public final String getProvider()
Provider discriminator.
Link copied to clipboard
public final boolean getStrictStructuredOutput()
Opt-in (default ): when true, structured output runs in the provider's strict mode — the response is grammar-constrained to the schema, which is normalized automatically (additionalProperties: false, all properties required, unsupported keywords moved into descriptions).
Link copied to clipboard
public final Double getTemperature()
Sampling temperature passed to the model.
Link copied to clipboard
public final UnparseableOutputHandling getUnparseableOutputHandling()
How extraction responds when the model's output never parses against the requested schema.
Link copied to clipboard
public final void setAiProvider(VlmProvider value)
The primary AI provider for extraction/classification.
Link copied to clipboard
public final void setApiKey(String value)
API key for the configured provider.
Link copied to clipboard
public final void setEndpoint(String value)
Endpoint URL.
Link copied to clipboard
public final void setFallbackAiProvider(VlmProvider value)
Optional secondary AI provider used to transparently retry a request when the primary returns no content (content filtering) or is temporarily unavailable.
Link copied to clipboard
public final void setIncludeCompositeConfidence(boolean value)
(Schema v1 only.) Daemon-level default for whether the legacy rolled-up composite number is attached to result.json metadata leaves as confidence.
Link copied to clipboard
public final void setIncludeConfidence(boolean value)
Daemon-level default for whether AI processing capacities emit confidence output - the confidence.json sidecar and the per-field confidence signals on result.json metadata.
Link copied to clipboard
public final void setIncludeGroundedness(boolean value)
Daemon-level default for whether the NLI groundedness score is computed and surfaced as the primary confidence.groundedness (schema v2 only).
Link copied to clipboard
public final void setIncludePageImages(boolean value)
Opt-in (default ): when true, every page of the source document is rendered to an image and sent to the model alongside the IR-lite text (multimodal extraction).
Link copied to clipboard
public final void setIncludeSourceLocations(boolean value)
Whether extraction grounds each extracted field back to its source location in the document — the metadata node of result.json with per-field match labels and source bounding boxes.
Link copied to clipboard
public final void setMaxAttempts(Integer value)
Maximum retry attempts on structured-output failure.
Link copied to clipboard
public final void setMaxInputTokens(int value)
Input-token budget per model call.
Link copied to clipboard
public final void setMaxParallelCalls(int value)
Maximum number of windowed extraction calls to run concurrently.
Link copied to clipboard
public final void setMetadataSchemaVersion(int value)
Daemon-level default for the result.json metadata schema version: 1 = the legacy flat shape (per-field match / confidenceComponents / opt-in composite confidence); 2 = the simplified citation + confidence shape (primary groundedness, ocr, boolean schemaValid).
Link copied to clipboard
public final void setModel(String value)
Model identifier (e.g.
Link copied to clipboard
public final void setProvider(String value)
Provider discriminator.
Link copied to clipboard
public final void setStrictStructuredOutput(boolean value)
Opt-in (default ): when true, structured output runs in the provider's strict mode — the response is grammar-constrained to the schema, which is normalized automatically (additionalProperties: false, all properties required, unsupported keywords moved into descriptions).
Link copied to clipboard
public final void setTemperature(Double value)
Sampling temperature passed to the model.
Link copied to clipboard
public final void setUnparseableOutputHandling(UnparseableOutputHandling value)
How extraction responds when the model's output never parses against the requested schema.