PdfAIOptions

data class PdfAIOptions(val provider: PdfAiProvider? = null, val providerContextTokens: Int = 4096, val context: Context? = null, val experimentalOnDevicePrompt: Boolean = false)

Constructors

Link copied to clipboard
constructor(provider: PdfAiProvider? = null, providerContextTokens: Int = 4096, context: Context? = null, experimentalOnDevicePrompt: Boolean = false)

Properties

Link copied to clipboard
val context: Context? = null

Needed for the on-device summariser. Without it, summaries fall back to the provider.

Link copied to clipboard

Alpha prompt APIs stay off unless asked for (PRV-5). No on-device prompt route exists yet, so answers use the custom provider either way.

Link copied to clipboard
val provider: PdfAiProvider? = null
Link copied to clipboard

The custom provider's context window in tokens. A custom provider cannot report its own, so it is the integrator's to state.