Version: latest
agrag.common.data_models.task.TaskView
Bases: BaseModel
A bounded resume view of one task. It never includes event bodies.
Attributes:
- task_name (
str) – Task name. - goal (
str) – The task goal. - status (
TaskStatus) – Lifecycle state. - last_event_seq (
int) – The sequence number of the last event, or 0. - steps (
dict[StepState, list[StepSummary]]) – Shown steps grouped by state. Every state is a key, in the order ofSTEP_STATE_ORDER. The shown steps are capped across all states. - step_counts (
dict[StepState, int]) – Number of steps in each state, including steps that the cap hides. Every state is a key. - steps_truncated (
bool) – Whether some steps are hidden by the cap. - decisions (
list[Decision]) – Active decisions, newest first, capped at 20. - review_decisions (
list[Decision]) – Active decisions needing review, capped at 20. - conflicts (
list[ConflictGroup]) – Conflicting choices that include this task, capped at 10.
conflicts
conflicts: list[ConflictGroup] = Field(default_factory=list)
conflicts_truncated
conflicts_truncated: bool = False
decision_count
decision_count: int = 0
decisions
decisions: list[Decision] = Field(default_factory=list)
decisions_truncated
decisions_truncated: bool = False
goal
goal: str
last_event_seq
last_event_seq: int
model_config
model_config = ConfigDict(frozen=True)
review_decisions
review_decisions: list[Decision] = Field(default_factory=list)
status
status: TaskStatus
step_counts
step_counts: dict[StepState, int]
steps
steps: dict[StepState, list[StepSummary]]
steps_truncated
steps_truncated: bool
task_name
task_name: str