Context information for an AI Assistant request, specifying the relevant page and selected text.
The zero-based index of the page in the document.
The selected or relevant text content from the document.
Converts this context to a JSON object for network transmission.