feat: 提示词回显确认语义+语言规则放开+extractor cc_reply
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -91,3 +91,14 @@ def test_evaluator_positive_signals_are_bonus_not_required():
|
||||
def test_evaluator_interested_example_mentions_rounds():
|
||||
# interested 示例补"聊了几轮后"(轮次语境)
|
||||
assert "聊了几轮后" in EVALUATOR_PROMPT
|
||||
|
||||
|
||||
# ---- Task 5(spec §2/§4b): extractor cc_reply 单轮答语分类 ----
|
||||
def test_extractor_cc_reply_field_and_double_gating():
|
||||
"""cc_reply 可选字段说明 + 双门控声明(提示词侧; Python 侧等待态门控在
|
||||
conversation._cc_round_end)——防止对无关问题的 yes 被误当号码确认。"""
|
||||
assert "cc_reply" in EXTRACTOR_PROMPT
|
||||
assert '{"affirm": true}' in EXTRACTOR_PROMPT
|
||||
assert '{"affirm": false, "country": "Egypt"}' in EXTRACTOR_PROMPT
|
||||
assert "仅当客户在回应号码确认时填写" in EXTRACTOR_PROMPT # 双门控声明
|
||||
assert "自由文本国名" in EXTRACTOR_PROMPT # country 中英皆可
|
||||
|
||||
Reference in New Issue
Block a user