Skip to main content
Version: latest

agrag.common.data_models.client_work.PendingWorkBatch

Bases: BaseModel

One page of pending work of a single kind.

Attributes:

  • kind (PendingWorkKind) – The kind of work in the batch.
  • remaining (int) – How many items of this kind are still pending after the page.
  • instructions (str) – Directions for the client model, including the warning that source text is untrusted data.
  • output_schema (dict[str, object]) – JSON schema the result of every item must match.
  • schema_types (list[dict[str, object]]) – The graph types relevant to this batch, with their descriptions and, for extraction, the allowed relation pairs.
  • items (list[PendingWorkItem]) – The pending items, weakest or oldest first.

instructions​

instructions: str

items​

items: list[PendingWorkItem] = Field(default_factory=list)

kind​

kind: PendingWorkKind

output_schema​

output_schema: dict[str, object]

remaining​

remaining: int

schema_types​

schema_types: list[dict[str, object]] = Field(default_factory=list)