Skip to main content
Version: latest

agrag.common.data_models.client_work.ChunkLlmWork

Bases: BaseModel

The language work recorded on one chunk.

The local result is stored while the item is pending. The validated reply and its origin are stored once the item is applied. Both results are JSON text so the graph stores them as plain properties.

Attributes:

  • chunk_id (UUID | None) – The chunk this work belongs to. It is not stored on the chunk node; the commit uses it to find the row to update.
  • state (Literal['pending', 'applied']) – pending while awaiting a client result, applied after one has been accepted.
  • rank_group (int | None) – Ordering group from the escalation plan of the pending run.
  • rank_score (float | None) – Weakest span score from that plan, or None when the chunk had no scored span.
  • local_result (str | None) – The local extraction result as JSON, stored while pending.
  • client_result (str | None) – The validated client result as JSON, stored when applied.
  • client_model (str | None) – Model name reported by the client that applied the result.
  • client_prompt (str | None) – Prompt identity of the client work item.

chunk_id​

chunk_id: UUID | None = None

client_model​

client_model: str | None = None

client_prompt​

client_prompt: str | None = None

client_result​

client_result: str | None = None

local_result​

local_result: str | None = None

rank_group​

rank_group: int | None = None

rank_score​

rank_score: float | None = None

state​

state: Literal['pending', 'applied'] = 'pending'