DocumentMetadata

@Serializable
data class DocumentMetadata(val startPage: Int? = null, val endPage: Int? = null, val contentLayers: List<DocumentMetadataContentLayer>? = null)

Metadata describes the input document content.

Set this in Part.document_metadata or FunctionResponsePart.document_metadata when inline_data or file_data contains a document to configure static document preprocessing.

Constructors

Link copied to clipboard
constructor(startPage: Int? = null, endPage: Int? = null, contentLayers: List<DocumentMetadataContentLayer>? = null)

Properties

Link copied to clipboard

Content layers to return. If empty, defaults to PAGE_IMAGE when DocumentMetadata is set. When DocumentMetadata is not set, default document processing is used (for example, page images for PDFs).

Link copied to clipboard
val endPage: Int? = null

1-indexed inclusive end page.

Link copied to clipboard
val startPage: Int? = null

1-indexed inclusive start page.