Enums
ModelOptions
Available model identifiers for OCR and extraction.ModelProvider
Supported model providers.ErrorMode
Error handling strategies.PageStatus
Page processing status.OperationMode
Internal operation modes (used by custom model functions).Credential Types
ModelCredentials
Union type of all supported credential types.OpenAICredentials
AzureCredentials
BedrockCredentials
GoogleCredentials
LLM Parameter Types
LLMParams
Union type of all provider-specific LLM parameters.Common LLM Parameters
All LLM parameter types share these base properties:OpenAILLMParams
AzureLLMParams
BedrockLLMParams
GoogleLLMParams
Response Types
Page
Represents a single processed page.content- Extracted text from the page (undefined on error)contentLength- Character count of contenterror- Error message if processing failedextracted- Per-page extracted data (when usingextractPerPage)inputTokens- Input tokens consumed for this pageoutputTokens- Output tokens generated for this pagepage- Page number (1-indexed)status-PageStatus.SUCCESSorPageStatus.ERROR
Summary
Processing summary statistics.totalPages- Total number of pages in the documentocr- OCR statistics (null inextractOnlymode)successful- Pages successfully processedfailed- Pages that failed
extracted- Extraction statistics (null if no schema)successful- Successful extraction operationsfailed- Failed extraction operations
LogprobPage
Log probabilities for a single page or extraction.page- Page number (null for full-document extractions)value- Array of token-level log probabilities from OpenAI API
Advanced Types
HybridInput
Input type for hybrid extraction mode.enableHybridExtraction: true.

