feat(planner): persist reusable action semantics
Tests / Test passed: 879

This commit is contained in:
2026-07-15 18:14:28 +08:00
parent 361dada276
commit d69be48f96
41 changed files with 733 additions and 116 deletions
+4
View File
@@ -16,6 +16,10 @@ class PlannedStep:
description: str
args: dict[str, Any] = field(default_factory=dict)
expected_text: str | None = None
# Structured action semantics, populated by AI planner tool calls and
# retained independently from executable arguments for later reuse.
purpose: str | None = None
expected_outcome: str | None = None
# The actual prompt sent to the LLM for this step (AI planners only).
# ``None`` for non-LLM planners; TaskRunner falls back to the task goal.
prompt: str | None = None