From c76afb21b58e812637526c10286d255f033e33ce Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 13 Feb 2025 19:34:49 +0800 Subject: [PATCH] fix error (#594) --- rdagent/scenarios/data_science/proposal/exp_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdagent/scenarios/data_science/proposal/exp_gen.py b/rdagent/scenarios/data_science/proposal/exp_gen.py index 99bb9afe..ea5531b5 100644 --- a/rdagent/scenarios/data_science/proposal/exp_gen.py +++ b/rdagent/scenarios/data_science/proposal/exp_gen.py @@ -218,7 +218,7 @@ class DSExpGen(ExpGen): ) ): # Assumption: when completing missing component, using component name as task name resp_dict["description"] = ( - str(resp_dict.get("description"), "") + str(resp_dict.get("description", "")) + f"\n\nYou have tried to implement the same component and got the following exception: \n{exp_and_feedback[1].exception}\n Please try different methods to avoid the same errors and results in an infinite loop" )