Skip to main content

Module model

Module model 

Source
Expand description

Canonical document model (urn:ethos:schema:document:1). Field-for-field mirror of the schema; serialization through these types + crate::c14n is the only way Ethos emits the document artifact.

Structs§

Cell
A table cell.
Chunk
A RAG chunk.
CoordinateSystem
Coordinate system declaration.
Document
Top-level document artifact (ethos.json).
Element
A layout element.
Page
A page.
PageBox
A page-anchored bbox (citation target).
ParserInfo
Producing parser identity.
Payload
The emitted document payload.
ProfileRef
Deterministic profile reference.
Region
A non-text region with stable coordinates.
SourceInfo
Source identity.
Span
An extracted text span.
SpanOriginLocator
Origin-derived text locator that remains stable when PDFium bbox dimensions drift.
Table
A table.
TableExports
Optional derived table exports.
TokenEstimate
Token estimate.
Warning
A stable, deterministic warning (fixed-template message).

Enums§

ElementType
Element type enum (wire: snake_case).
RegionKind
Non-text region kind. Base tier emits unknown unless deterministic gates are met.