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.
Tags: Vision
from nutrient_sdk import AiProcessingSettingsConstruction
AiProcessingSettings is accessed through a Document instance for per-document overrides, or via SdkSettings for SDK-wide defaults.
# Per-document overridewith Document.open("input.pdf") as doc: settings = doc.settings.ai_processing_settings settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)SdkSettings.ai_processing_settings.some_field = new_valueSettings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.ai_processing_settings = other_settings is rejected.
Properties
api_key
@propertydef api_key(self) -> str
@api_key.setterdef api_key(self, value: str) -> NoneAPI key for the configured provider.
Type: str
endpoint
@propertydef endpoint(self) -> str
@endpoint.setterdef endpoint(self, value: str) -> NoneEndpoint URL for Azure or local providers. Ignored for the public OpenAI provider.
Type: str
max_attempts
@propertydef max_attempts(self) -> Optional[int]
@max_attempts.setterdef max_attempts(self, value: Optional[int]) -> NoneMaximum retry attempts on structured-output failure. uses the capacity default of 1.
Type: Optional[int]
model
@propertydef model(self) -> str
@model.setterdef model(self, value: str) -> NoneModel identifier (e.g. “gpt-4o”, an Azure deployment name, or a local model id).
Type: str
provider
@propertydef provider(self) -> str
@provider.setterdef provider(self, value: str) -> NoneProvider discriminator. One of “openai”, “azure”, or “local”.
Type: str
temperature
@propertydef temperature(self) -> Optional[float]
@temperature.setterdef temperature(self, value: Optional[float]) -> NoneSampling temperature passed to the model. uses the provider default.
Type: Optional[float]