Enhance Planning Exercise Profiles and Context Handling
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 43s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m14s

- Introduced new functions to generate skill profiles from exercise IDs, improving the ability to summarize skills for both units and sections.
- Updated the planning target profile to incorporate section-specific exercise IDs, allowing for more granular skill tracking and context.
- Enhanced the ExercisePickerModal and related pages to support section context, including titles, guidance notes, and exercise counts.
- Implemented expectation mode handling in the planning target pipeline to differentiate between planning references and query-only scenarios.
- Incremented version to 0.8.174 and updated changelog to reflect these enhancements in planning AI capabilities.
This commit is contained in:
Lars committed 2026-05-22 23:00:31 +02:00
1 parent 8e68261bc1
commit 04cc77d501
8 files changed
+361 -18

No files matched your search

@@ -78,6 +78,30 @@ def test_compose_retrieval_phase():
)
def test_query_only_expectation_without_planning_reference():
from planning_exercise_profiles import PlanningTargetProfile
from planning_exercise_target_pipeline import build_planning_target_with_query_pipeline
class _Cur:
pass
target, intent, scenario, summary = build_planning_target_with_query_pipeline(
_Cur(),
unit={"id": None, "framework_slot_id": None, "origin_framework_slot_id": None},
planned_exercise_ids=[],
section_planned_exercise_ids=[],
anchor_exercise_id=None,
query="Partnerübung Reaktion",
heuristic_intent="free_search",
include_llm_intent=False,
context_summary={"expectation_mode": "query_only"},
has_planning_reference=False,
)
assert intent == "free_search"
assert summary.get("expectation_mode") == "query_only"
assert target.sources == ["query_only"] or "query_only" in target.sources
def test_parse_planning_query_intent_response():
parsed = parse_planning_query_intent_response(
'{"intent":"continue_plan_goal","scenario":"additive_constraint",'