Open
Description
composed_phase.py
class CodeReview(ComposedPhase):
def break_cycle(self, phase_env) -> bool:
if "<INFO> Finished".lower() in phase_env['modification_conclusion'].lower():
return True
else:
return False
According to the prompt, " Finished" is only returned during the CodeReviewComment stage, and the conclusion of this stage will be stored in chat_env.env_dict['review_comments']. There seems to be a bug in the current code logic. I believe the correct code should be as follows:
class CodeReview(ComposedPhase):
def break_cycle(self, phase_env) -> bool:
# 修复bug,这个标识来自于review_comments
if "<INFO> Finished".lower() in phase_env['review_comments'].lower():
return True
else:
return False
Metadata
Metadata
Assignees
Labels
No labels