Enhance Planning Context with Progression Gap Snapshot and Start/Target Analysis
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Successful in 1m13s
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Successful in 1m13s
- Introduced `build_progression_gap_snapshot` function to create a compact roadmap context for gap exercises, integrating start situation, target state, and stage specifications. - Updated `build_gap_fill_goal_text` to include roadmap snapshot details, enhancing the context for AI-generated exercises. - Enhanced `ProgressionPathSuggestRequest` and related components to support new structured inputs for start/target analysis, improving user experience and AI suggestions. - Incremented application version to 0.8.212 to reflect these changes.
This commit is contained in:
1 parent
fad1058d54
commit
f2650dac57
11 files changed
+505
-25
No files matched your search
@@ -91,3 +91,25 @@ def test_build_gap_fill_goal_text_includes_topic():
|
||||
assert "Mae Geri" in text or "mae geri" in text.lower()
|
||||
assert "anwendung" in text
|
||||
assert "Kihon" in text
|
||||
|
||||
|
||||
def test_build_gap_fill_goal_text_includes_roadmap_snapshot():
|
||||
brief = build_semantic_brief("Kumite Beinarbeit")
|
||||
text = build_gap_fill_goal_text(
|
||||
goal_query="Kumite Beinarbeit",
|
||||
brief=brief,
|
||||
spec={"phase": "vertiefung", "title_hint": "variable Rhythmen"},
|
||||
step_a={"title": "Schritt A"},
|
||||
step_b={"title": "Schritt B"},
|
||||
roadmap_snapshot={
|
||||
"start_situation": "gleichförmige Steppbewegung",
|
||||
"target_state": "explosiver Angriff",
|
||||
"stage_learning_goal": "variable Rhythmen und multidirektionale Kontrolle",
|
||||
"stage_load_profile": ["timing", "distanz"],
|
||||
"skill_hints": ["Beinarbeit"],
|
||||
},
|
||||
)
|
||||
assert "gleichförmige Steppbewegung" in text
|
||||
assert "explosiver Angriff" in text
|
||||
assert "variable Rhythmen" in text
|
||||
assert "timing" in text
|
||||
Reference in new issue
Block a user