Enhance Gap Planning Context with Stage Overrides and Trainer Supplements
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m25s
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m25s
- Added `stage_learning_goal_override` and `gap_trainer_supplements` parameters to `build_progression_path_gap_planning_context`, allowing for customized learning goals and additional trainer notes. - Updated `gapOfferContextDisplayLines` to include trainer supplements in the context display. - Enhanced `ExerciseProgressionPathBuilder` to utilize new parameters for improved gap fill offer handling. - Incremented application version to 0.8.214 to reflect these changes.
This commit is contained in:
1 parent
d4b1780193
commit
0adf20c9e1
6 files changed
+323
-30
No files matched your search
@@ -168,6 +168,8 @@ def build_progression_path_gap_planning_context(
|
||||
resolved_structured: Optional[Mapping[str, Any]] = None,
|
||||
stage_spec: Optional[Mapping[str, Any]] = None,
|
||||
semantic_brief: Optional[Mapping[str, Any]] = None,
|
||||
stage_learning_goal_override: Optional[str] = None,
|
||||
gap_trainer_supplements: Optional[str] = None,
|
||||
) -> Dict[str, Any]:
|
||||
"""Kontext für KI-Neuanlage aus Progressionsgraph-Pfad-Lücke."""
|
||||
offer = offer or {}
|
||||
@@ -205,6 +207,11 @@ def build_progression_path_gap_planning_context(
|
||||
semantic_brief=semantic_brief,
|
||||
)
|
||||
ctx.update(snap)
|
||||
if stage_learning_goal_override and stage_learning_goal_override.strip():
|
||||
ctx["stage_learning_goal"] = _trim_str(stage_learning_goal_override, limit=1200)
|
||||
ctx["roadmap_learning_goal"] = ctx["stage_learning_goal"]
|
||||
if gap_trainer_supplements and gap_trainer_supplements.strip():
|
||||
ctx["gap_trainer_supplements"] = _trim_str(gap_trainer_supplements, limit=2000)
|
||||
return sanitize_planning_context_for_ai(ctx)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user