refactor: drop dead prompt fields consolidate_system/span_eval_user

This commit is contained in:
2026-07-16 04:42:26 -04:00
parent d3639a94b8
commit 1108235818
6 changed files with 2 additions and 13 deletions
-1
View File
@@ -750,7 +750,6 @@ class TestRunDiagnosis:
defect_vs_lapse="",
reasoning_sub="",
span_eval_system="",
span_eval_user="",
missed_nodes="",
skill_adherence="",
confirmation_bias="",
+2 -4
View File
@@ -344,12 +344,11 @@ def test_quadrant_classification_frozen():
def test_diagnose_prompts_frozen():
"""DiagnosePrompts 是 frozen dataclass8 个模板字段。"""
"""DiagnosePrompts 是 frozen dataclass7 个模板字段。"""
dp = DiagnosePrompts(
defect_vs_lapse="p1",
reasoning_sub="p2",
span_eval_system="p3",
span_eval_user="p4",
missed_nodes="p5",
skill_adherence="p6",
confirmation_bias="p7",
@@ -361,13 +360,12 @@ def test_diagnose_prompts_frozen():
def test_evolve_prompts_frozen():
"""EvolvePrompts 是 frozen dataclass5 个模板字段。"""
"""EvolvePrompts 是 frozen dataclass4 个模板字段。"""
ep = EvolvePrompts(
evolve_skill="skill_tmpl",
evolve_system="system_tmpl",
evolve_tool="tool_tmpl",
evolve_rank="rank_tmpl",
consolidate_system="consolidate_tmpl",
)
assert ep.evolve_rank == "rank_tmpl"
with pytest.raises(AttributeError):
-1
View File
@@ -681,7 +681,6 @@ _PROMPTS = EvolvePrompts(
evolve_system="sys",
evolve_tool="tool",
evolve_rank="rank",
consolidate_system="cons",
)