Version: latest
agrag.common.data_models.task
Models for durable task state: tasks, raw events, steps and resume views.
Classes:
- CreateTaskResult – The outcome of creating or reusing a task.
- Event – One raw event appended to a task.
- EventKind – Kind of a raw event appended to a task.
- EventPage – One page of events of a task, in sequence order.
- MemoryErrorCode – Fixed error codes returned by task memory operations.
- RecordEventResult – The outcome of appending one event.
- SetStepResult – The outcome of creating or updating a step.
- Step – A named step of a task with an explicit state.
- StepKind – Broad category of a step.
- StepState – State of a step. Resume reruns every step that is not completed.
- StepSummary – The fields of a step that a resume view shows.
- Task – A named unit of work inside one project.
- TaskLookup – The result of reading a task view by name.
- TaskStatus – Lifecycle state of a task.
- TaskView – A bounded resume view of one task. It never includes event bodies.
- WriteResult – Base outcome of a task memory write.
Attributes:
- EVENT_LABEL –
- HAS_EVENT –
- HAS_STEP –
- PROJECT_LABEL –
- REQUEST_LABEL –
- STEP_LABEL –
- STEP_STATE_ORDER (
tuple[StepState, ...]) – - TASK_LABEL –