Enhance Planning AI Context with Catalog Exercise Hints
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Successful in 1m15s
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Successful in 1m15s
- Introduced support for catalog exercise hints in various functions, including `_build_stage_ai_context`, `try_suggest_ai_stage_step`, and `build_gap_fill_goal_text`, improving the contextual information available for AI suggestions. - Added a new function `catalog_exercise_hints_block` to consolidate hints retrieval from the catalog context. - Updated the `PlanningIntentContext` to include catalog exercise hints, ensuring they are part of the API output. - Implemented tests to verify the inclusion of catalog exercise hints in goal text generation and rematch logic. - Incremented version numbers and updated changelog to reflect these enhancements.
This commit is contained in:
1 parent
35fe31774b
commit
3181cc126d
11 files changed
+166
-14
No files matched your search
@@ -336,3 +336,29 @@ def test_filter_rematch_skips_preserved_slots():
|
||||
off_topic_steps=[],
|
||||
)
|
||||
assert filtered == {1}
|
||||
|
||||
|
||||
def test_apply_rematch_catalog_guard_skips_unfilled_only():
|
||||
from planning_path_rematch import apply_rematch_catalog_guard
|
||||
|
||||
indices = {0, 1, 2}
|
||||
reasons = {
|
||||
0: "QS-Tier-1",
|
||||
1: "Keine passende Übung für Roadmap-Stufe",
|
||||
2: "Passt nicht zur Haupttechnik",
|
||||
}
|
||||
filtered = apply_rematch_catalog_guard(
|
||||
indices,
|
||||
reasons,
|
||||
rematch_guard="Keine leeren Slots erzwingen.",
|
||||
)
|
||||
assert filtered == {0, 2}
|
||||
|
||||
|
||||
def test_apply_rematch_catalog_guard_inactive_without_guard():
|
||||
from planning_path_rematch import apply_rematch_catalog_guard
|
||||
|
||||
indices = {1}
|
||||
reasons = {1: "Keine passende Übung für Roadmap-Stufe"}
|
||||
assert apply_rematch_catalog_guard(indices, reasons, rematch_guard=None) == {1}
|
||||
assert apply_rematch_catalog_guard(indices, reasons, rematch_guard="") == {1}
|
||||
Reference in new issue
Block a user