Update rdagent/core/proposal.py

This commit is contained in:
you-n-g
2024-07-15 11:58:41 +08:00
committed by GitHub
parent a2de38462b
commit 95f825f4bc
+1
View File
@@ -56,6 +56,7 @@ class Trace(Generic[ASpecificScen]):
def get_last_experiment_info(self) -> Tuple[Hypothesis, ASpecificTask, Any]:
"""Access the last experiment result, sub-task, and the corresponding hypothesis."""
# TODO: The return value does not align with the signature.
if not self.hist:
return None
last_hypothesis, last_experiment, _ = self.hist[-1]