feat: checkpoint device agent runtime milestones
This commit is contained in:
+5
-2
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user