Skip to main content
Version: latest

agrag.common.data_models.task.Step

Bases: BaseModel

A named step of a task with an explicit state.

Attributes:

  • id (UUID) – Identifier derived from the task id and the step name.
  • task_id (UUID) – The task the step belongs to.
  • name (str) – Step name, unique within the task.
  • kind (StepKind) – Broad category of the step.
  • state (StepState) – Current state.
  • result_event_seq (int | None) – Sequence number of the event that holds the step's result, or None.
  • updated_seq (int) – The task's event sequence number when the step was last set.

id​

id: UUID

kind​

kind: StepKind

model_config​

model_config = ConfigDict(frozen=True)

name​

name: str

result_event_seq​

result_event_seq: int | None

state​

state: StepState

task_id​

task_id: UUID

updated_seq​

updated_seq: int