Skip to content

Commit a842208

Browse files
authored
Merge pull request #76 from Ridealist/prompt/L5-T2_task_cards
prompt/task-card: Add L5-T2 task card
2 parents 92c5263 + f8ef95a commit a842208

4 files changed

Lines changed: 526 additions & 2 deletions

File tree

agent/tests/test_prompt_realtime.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def test_realtime_default_prompt_source_records_default_task_card_id() -> None:
279279
source = prompt_realtime.load_prompt_source()
280280

281281
assert source.source == "default"
282-
assert source.task_card_id == "morning_exercise_challenge"
282+
assert source.task_card_id == "healthy_habit_stamp_card"
283283
assert source.prompt_version_id is None
284284

285285

@@ -534,13 +534,25 @@ def test_realtime_prompt_call_task_card_id_overrides_default_selection(
534534
assert "# TASK CARD: Our Class Morning Exercise Challenge" not in prompt
535535

536536

537+
def test_realtime_prompt_call_healthy_habit_task_card_id_overrides_default_selection(
538+
tmp_path, monkeypatch
539+
) -> None:
540+
prompt = build_prompt(role="dominant", task_card_id="healthy_habit_stamp_card")
541+
542+
assert "# TASK CARD: Our Class Healthy Habit Stamp Card" in prompt
543+
assert "# TASK CARD: Our Class Morning Exercise Challenge" not in prompt
544+
545+
537546
def test_realtime_opening_comes_from_selected_task_card(tmp_path, monkeypatch) -> None:
538547
assert get_opening_sentence("morning_exercise_challenge") == (
539548
"Hi, I'm Kate. Let's choose one morning exercise activity for our Class."
540549
)
541550
assert get_opening_sentence("school_event_invitation") == (
542551
"Hi, I'm Kate. Today, let's choose one school event and make an invitation."
543552
)
553+
assert get_opening_sentence("healthy_habit_stamp_card") == (
554+
"Hi, I'm Kate. Let's choose three healthy habits for our Class's stamp card."
555+
)
544556

545557

546558
def test_realtime_opening_falls_back_when_task_card_has_no_opening(

prompts/realtime/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"defaultFeedbackConditionId": "no_corrective",
1616
"conditionCombinationManifest": "condition-combinations/manifest.json",
1717
"taskCardManifest": "task-cards/manifest.json",
18-
"defaultTaskCardId": "morning_exercise_challenge"
18+
"defaultTaskCardId": "healthy_habit_stamp_card"
1919
}

0 commit comments

Comments
 (0)