CC_flows / CF_CodeDebug.py
martinjosifoski's picture
Add early stopping for debugging on passed tests. Propagate minor changes to default human_message keys.
68afe75
raw
history blame
310 Bytes
from flows.base_flows import GeneratorCriticFlow
class CF_CodeDebug(GeneratorCriticFlow):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def _early_exit(self):
if self.flow_state.get("all_tests_passed", False):
return True
return super()._early_exit()