feat: checkpoint device agent runtime milestones

This commit is contained in:
2026-07-06 17:24:03 +08:00
parent 2d4251e98e
commit 5658735bca
153 changed files with 8060 additions and 65 deletions
+5 -2
View File
@@ -1,11 +1,14 @@
from __future__ import annotations
from dataclasses import dataclass, field
from typing import Any
from typing import TYPE_CHECKING, Any
from core.models import Scene
from runtime.context import TaskContext
if TYPE_CHECKING:
from world.models import WorldState
@dataclass(frozen=True)
class PlannedStep:
@@ -22,6 +25,7 @@ class Planner:
goal: str,
scene: Scene,
context: TaskContext,
world: "WorldState | None" = None,
) -> list[PlannedStep]:
if context.step_results:
return []
@@ -37,4 +41,3 @@ class Planner:
return bool(context.step_results) and all(
result.success for result in context.step_results
)