Version: 0.0.10 (stable)
agrag.common.data_models.document.DocumentSummary
Bases: BaseModel
Identity and current version of one stored document.
Attributes:
- document_key (
str) – The stable key of the document. - activation_sequence (
int) – The number of versions activated for the key. - content_hash (
str | None) – The content hash of the current version, or None. - run (
DocumentRunStatus | None) – The run that saves the document, or None when it has none. A complete run keeps its chunk counts. Its saved chunks are searchable.
activation_sequence
activation_sequence: int = 0
content_hash
content_hash: str | None = None
document_key
document_key: str
incomplete
incomplete: bool
Return whether the document still has chunks to save or has stopped.
model_config
model_config = ConfigDict(frozen=True)
run
run: DocumentRunStatus | None = None