Interface: LoadedDocument
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:796
The parsed representation of a document returned by Memory.load().
Contains full text, optional chunks, and any extracted images/tables.
Properties
chunks?
optionalchunks:DocumentChunk[]
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:810
Pre-chunked segments, present when chunking was requested during load.
content
content:
string
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:800
Full extracted text content of the document.
format
format:
string
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:827
The format that was detected or used to parse the document.
Example
'pdf' | 'md' | 'docx' | 'txt'
images?
optionalimages:ExtractedImage[]
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:816
Images extracted from the document.
Populated only when IngestionConfig.extractImages is true.
metadata
metadata:
DocumentMetadata
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:805
Document-level metadata (title, author, page count, etc.).
tables?
optionaltables:ExtractedTable[]
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:821
Structured tables extracted from the document.