Context

@Serializable
data class Context(val pageIndex: Int, val text: String)

Context information for an AI Assistant request, specifying the relevant page and selected text.

Constructors

Link copied to clipboard
constructor(pageIndex: Int, text: String)

Properties

Link copied to clipboard

The zero-based index of the page in the document.

Link copied to clipboard

The selected or relevant text content from the document.

Functions

Link copied to clipboard

Converts this context to a JSON object for network transmission.