Interface: LoadedDocument
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:962
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:976
Pre-chunked segments, present when chunking was requested during load.
content
content:
string
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:966
Full extracted text content of the document.
format
format:
string
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:993
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:982
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:971
Document-level metadata (title, author, page count, etc.).
tables?
optionaltables:ExtractedTable[]
Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:987
Structured tables extracted from the document.