Implement Off-Topic Slot Gap Specification and Unified Slot Review Enhancements
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 43s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m34s
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 43s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m34s
- Introduced `_build_off_topic_slot_gap_spec` to generate specifications for off-topic slots, improving the handling of filled but thematically inappropriate slots. - Added `_build_unified_slot_review_entry` to streamline the review process for slots, incorporating various parameters for better evaluation and suggestions. - Enhanced existing logic in slot management to improve the robustness of path evaluations and user feedback. - Added tests for the new off-topic slot gap specification to ensure functionality and correctness.
This commit is contained in:
1 parent
cd457e3ea0
commit
f0e581a9f5
3 files changed
+411
-244
No files matched your search
@@ -111,3 +111,20 @@ def test_slot_auto_select_requires_higher_score():
|
||||
baseline_exercise_id=1,
|
||||
proposed_exercise_id=2,
|
||||
)
|
||||
|
||||
|
||||
def test_off_topic_slot_gap_spec_for_filled_slot():
|
||||
from planning_exercise_path_builder import _build_off_topic_slot_gap_spec
|
||||
|
||||
spec = _build_off_topic_slot_gap_spec(
|
||||
{
|
||||
"roadmap_major_step_index": 7,
|
||||
"exercise_id": 99,
|
||||
"title": "Ukemi Vorwärts",
|
||||
"roadmap_learning_goal": "Integration Täuschung",
|
||||
}
|
||||
)
|
||||
assert spec is not None
|
||||
assert spec["source"] == "off_topic"
|
||||
assert spec["roadmap_major_step_index"] == 7
|
||||
assert "Ukemi" in spec["rationale"]
|
||||
Reference in new issue
Block a user