Version: latest
agrag.common.data_models.document_run.DocumentRunStatus
Bases: BaseModel
Progress of the run that saves one document, and the next call that moves it on.
Attributes:
- document_key (
str) – The key of the document the run saves. - state (
DocumentRunState) – The lifecycle state of the run. - chunks_total (
int) – How many chunks the run saves in total. - chunks_done (
int) – How many chunks are saved. - chunks_left (
int) – How many chunks are not saved yet and have not failed. - chunks_failed (
int) – How many chunks failed on every attempt. - cause (
str | None) – The error message of the failure that stopped the run, or None. - waiting (
str | None) – Why the run's last attempt could not proceed, or None. - next_call (
str | None) – The call that moves the run on, or None when it is complete.
cause
cause: str | None = None
chunks_done
chunks_done: int
chunks_failed
chunks_failed: int
chunks_left
chunks_left: int
chunks_total
chunks_total: int
document_key
document_key: str
is_unfinished
is_unfinished: bool
Return whether the run has chunks left to save or needs a decision.
model_config
model_config = ConfigDict(frozen=True)
next_call
next_call: str | None = None
state
state: DocumentRunState
waiting
waiting: str | None = None