ReadDocumentOutput
@forge/monorepo / backend/src / ReadDocumentOutput
Type Alias: ReadDocumentOutput
ReadDocumentOutput =
object
Defined in: backend/src/documents/read-tool.ts:34
Properties
blocksReturned
readonlyblocksReturned:number
Defined in: backend/src/documents/read-tool.ts:38
confidence?
readonlyoptionalconfidence?:number
Defined in: backend/src/documents/read-tool.ts:50
OCR/vision confidence, 0–1, and only when the extraction was probabilistic (#132).
Present alongside the low-confidence warning rather than instead of it: the warning is the sentence a model should pass on, and the number is what a caller comparing two extractions needs.
documentTruncated?
readonlyoptionaldocumentTruncated?:boolean
Defined in: backend/src/documents/read-tool.ts:43
Present when extraction itself truncated the document — a different fact from this window truncating.
fileId
readonlyfileId:string
Defined in: backend/src/documents/read-tool.ts:35
fromBlock
readonlyfromBlock:number
Defined in: backend/src/documents/read-tool.ts:37
lowConfidence?
readonlyoptionallowConfidence?:boolean
Defined in: backend/src/documents/read-tool.ts:51
nextBlock?
readonlyoptionalnextBlock?:number
Defined in: backend/src/documents/read-tool.ts:41
text
readonlytext:string
Defined in: backend/src/documents/read-tool.ts:36
totalBlocks
readonlytotalBlocks:number
Defined in: backend/src/documents/read-tool.ts:39
truncated
readonlytruncated:boolean
Defined in: backend/src/documents/read-tool.ts:40
warnings?
readonlyoptionalwarnings?: readonlystring[]
Defined in: backend/src/documents/read-tool.ts:52