Skip to main content
Version: latest

agrag.common.data_models.client_work.SubmitOutcome

Bases: BaseModel

The outcome of one submission.

Check accepted and errors and resubmit refused items. Both can be non-empty when an item becomes stale after earlier items were applied.

Attributes:

  • job_id (str | None) – The write job that applies accepted results, or None when nothing was accepted or the graph applied the work directly.
  • accepted (int) – How many results passed validation and changed the graph.
  • errors (list[WorkResultError]) – One entry per refused result.

accepted​

accepted: int = 0

errors​

errors: list[WorkResultError] = Field(default_factory=list)

job_id​

job_id: str | None = None