ProcessedFileResult
Defined in: src/lib/processors/types.ts:14
Result from processing a file
Properties
extractedText
extractedText:
string
Defined in: src/lib/processors/types.ts:16
Extracted text content
format
format:
"json"|"plain"|"markdown"
Defined in: src/lib/processors/types.ts:19
Format hint for how text should be presented
imageDataUrls?
optionalimageDataUrls:string[]
Defined in: src/lib/processors/types.ts:26
Fallback image data URLs (base64 PNG) when text extraction yields no content. For example, scanned PDFs have no extractable text — rendering each page as an image lets the vision model read the document instead.
metadata?
optionalmetadata:object
Defined in: src/lib/processors/types.ts:29
Optional metadata about the extraction
Index Signature
[key: string]: unknown
imageNote?
optionalimageNote:string
The exact sentence in extractedText that describes imageDataUrls (e.g. “pages 2-3
rendered as images and included in this message”). A consumer that drops some or all of
those images (the cross-file image budget, a zip archive) replaces this sentence so the
model is never told an image was included when it was not.
pageCount?
optionalpageCount:number
sheetCount?
optionalsheetCount:number
sheetNames?
optionalsheetNames:string[]
truncated?
optionaltruncated:boolean
True when the processor itself dropped part of the file (e.g. spreadsheet rows past the
per-sheet cap). Surfaces as a "truncated" FileProcessingStatus.
wordCount?
optionalwordCount:number