Skip to main content

Module types

Module types 

Source
Expand description

Core type definitions for document ingestion.

Documents have a fundamentally different structure than code:

  • Code: File → Symbols (functions, classes)
  • Documents: Document → Sections → ContentBlocks (paragraphs, tables, lists)

Structs§

CodeBlock
A code block with optional language.
CrossRef
A cross-reference to another section or document.
Definition
A definition (term + explanation).
Document
A parsed document ready for LLM-optimized output.
DocumentMetadata
Document metadata.
List
A list (ordered or unordered, possibly nested).
ListItem
A single list item.
Section
A document section with optional heading and nested children.
Table
A table with headers and rows.

Enums§

Alignment
Column alignment in a table.
ContentBlock
A block of content within a section.
ContentClass
Content classification for distillation scoring.
DistillationLevel
Distillation level controlling how aggressively content is compressed.
DocumentFormat
Supported document formats.