Skip to content

common_browser.schemas.data.extraction

Caller-typed extracted facts and their source rows.

Classes

Extraction

Bases: BaseModel

Admitted items and aligned sources, without a second outcome envelope.

The containers are frozen; mutability of a caller-owned item is unchanged.

Fields and properties declared here; inherited members belong to the bases above.

items

items: tuple[T, ...] = Field(default=(), repr=False)

sources

sources: tuple[RowSource, ...] = ()

RowSource

Bases: BaseModel

The document and observed row ordinal that produced one admitted item.

Fields and properties declared here; inherited members belong to the bases above.

document

document: DocumentRef

row_index

row_index: int = Field(ge=0)