j-js commited on
Commit
97c2dde
·
verified ·
1 Parent(s): 081ef02

Update conversation_logic.py

Browse files
Files changed (1) hide show
  1. conversation_logic.py +0 -5
conversation_logic.py CHANGED
@@ -990,7 +990,6 @@ class ConversationEngine:
990
  "general",
991
  "unknown",
992
  }
993
-
994
  # allow a few sensible cross-matches
995
  if question_topic == "algebra":
996
  compatible_topics.update({"ratio"})
@@ -1097,7 +1096,6 @@ class ConversationEngine:
1097
  "- Compare how far the smallest and largest values sit from the middle value in each dataset.\n"
1098
  "- The set with the widest spread has the greatest variability."
1099
  )
1100
-
1101
  # Source selection priority:
1102
  # 1) topic query (returned earlier)
1103
  # 2) question-specific guidance for help-first asks when available
@@ -1231,7 +1229,6 @@ class ConversationEngine:
1231
  hint_stage=hint_stage,
1232
  topic=result.topic,
1233
  )
1234
-
1235
  # Never reveal final answers during tutoring/help modes.
1236
  if resolved_help_mode in {"hint", "walkthrough", "explain", "instruction", "step_by_step"}:
1237
  result.solved = False
@@ -1239,7 +1236,6 @@ class ConversationEngine:
1239
  result.answer_value = None
1240
  result.internal_answer = None
1241
  result.meta["internal_answer"] = None
1242
-
1243
  # Only allow answer metadata to survive for true direct solve requests.
1244
  can_reveal_answer = bool(result.solved and direct_solve_request and not _is_help_first_mode(resolved_help_mode))
1245
  result.meta["can_reveal_answer"] = can_reveal_answer
@@ -1261,7 +1257,6 @@ class ConversationEngine:
1261
  topic=result.topic,
1262
  category=inferred_category,
1263
  )
1264
-
1265
  result.reply = reply
1266
  result.help_mode = resolved_help_mode
1267
  result.meta["help_mode"] = resolved_help_mode
 
990
  "general",
991
  "unknown",
992
  }
 
993
  # allow a few sensible cross-matches
994
  if question_topic == "algebra":
995
  compatible_topics.update({"ratio"})
 
1096
  "- Compare how far the smallest and largest values sit from the middle value in each dataset.\n"
1097
  "- The set with the widest spread has the greatest variability."
1098
  )
 
1099
  # Source selection priority:
1100
  # 1) topic query (returned earlier)
1101
  # 2) question-specific guidance for help-first asks when available
 
1229
  hint_stage=hint_stage,
1230
  topic=result.topic,
1231
  )
 
1232
  # Never reveal final answers during tutoring/help modes.
1233
  if resolved_help_mode in {"hint", "walkthrough", "explain", "instruction", "step_by_step"}:
1234
  result.solved = False
 
1236
  result.answer_value = None
1237
  result.internal_answer = None
1238
  result.meta["internal_answer"] = None
 
1239
  # Only allow answer metadata to survive for true direct solve requests.
1240
  can_reveal_answer = bool(result.solved and direct_solve_request and not _is_help_first_mode(resolved_help_mode))
1241
  result.meta["can_reveal_answer"] = can_reveal_answer
 
1257
  topic=result.topic,
1258
  category=inferred_category,
1259
  )
 
1260
  result.reply = reply
1261
  result.help_mode = resolved_help_mode
1262
  result.meta["help_mode"] = resolved_help_mode