Skip to content

Commit 65bb2d2

Browse files
authored
Enhance explanation message with calling context details
1 parent 9fbb5fd commit 65bb2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ def process_review(
14771477
logger.debug(f"optimization impact response failed, investigate {e}")
14781478
data["optimization_impact"] = opt_impact_response[0]
14791479
new_explanation_with_opt_explanation = Explanation(
1480-
raw_explanation_message=f"Impact: {opt_impact_response[0]}\n Impact_explanation: {opt_impact_response[1]} END OF IMPACT EXPLANATION\n"
1480+
raw_explanation_message=f"Impact: {opt_impact_response[0]}\n Impact_explanation: {opt_impact_response[1]} END OF IMPACT EXPLANATION\nCALLING CONTEXT \n{calling_fn_details}\nEND OF CALLING CONTEXT\n"
14811481
+ new_explanation.raw_explanation_message,
14821482
winning_behavior_test_results=explanation.winning_behavior_test_results,
14831483
winning_benchmarking_test_results=explanation.winning_benchmarking_test_results,

0 commit comments

Comments
 (0)