Skip to main content

Interface: DocumentMetadata

Defined in: packages/agentos/src/memory/facade/types.ts:620

Arbitrary key-value metadata attached to a loaded document. Well-known fields are typed explicitly; any additional fields are allowed.

Indexable

[key: string]: unknown

Any additional metadata fields from the source document.

Properties

author?

optional author: string

Defined in: packages/agentos/src/memory/facade/types.ts:625

Primary author of the document.


createdAt?

optional createdAt: string

Defined in: packages/agentos/src/memory/facade/types.ts:640

ISO 8601 creation timestamp.


language?

optional language: string

Defined in: packages/agentos/src/memory/facade/types.ts:637

ISO 639-1 language code detected in the document.

Example

'en' | 'de' | 'fr'

modifiedAt?

optional modifiedAt: string

Defined in: packages/agentos/src/memory/facade/types.ts:643

ISO 8601 last-modified timestamp.


pageCount?

optional pageCount: number

Defined in: packages/agentos/src/memory/facade/types.ts:628

Number of pages (PDF/DOCX).


source?

optional source: string

Defined in: packages/agentos/src/memory/facade/types.ts:646

Original file path or URL the document was loaded from.


title?

optional title: string

Defined in: packages/agentos/src/memory/facade/types.ts:622

Document title extracted from front-matter or PDF info dict.


wordCount?

optional wordCount: number

Defined in: packages/agentos/src/memory/facade/types.ts:631

Approximate word count of the full document text.