(self)
| 19 | self.repo_map.map_mul_no_files = 1.0 |
| 20 | |
| 21 | def reply_completed(self): |
| 22 | content = self.partial_response_content |
| 23 | if not content or not content.strip(): |
| 24 | return True |
| 25 | |
| 26 | # dump(repr(content)) |
| 27 | current_rel_fnames = set(self.get_inchat_relative_files()) |
| 28 | mentioned_rel_fnames = set(self.get_file_mentions(content, ignore_current=True)) |
| 29 | |
| 30 | # dump(current_rel_fnames) |
| 31 | # dump(mentioned_rel_fnames) |
| 32 | # dump(current_rel_fnames == mentioned_rel_fnames) |
| 33 | |
| 34 | if mentioned_rel_fnames == current_rel_fnames: |
| 35 | return True |
| 36 | |
| 37 | if self.num_reflections >= self.max_reflections - 1: |
| 38 | return True |
| 39 | |
| 40 | self.abs_fnames = set() |
| 41 | for fname in mentioned_rel_fnames: |
| 42 | self.add_rel_fname(fname) |
| 43 | # dump(self.get_inchat_relative_files()) |
| 44 | |
| 45 | self.reflected_message = self.gpt_prompts.try_again |
| 46 | |
| 47 | # mentioned_idents = self.get_ident_mentions(cur_msg_text) |
| 48 | # if mentioned_idents: |
| 49 | |
| 50 | return True |
| 51 | |
| 52 | def check_for_file_mentions(self, content): |
| 53 | pass |
nothing calls this directly
no test coverage detected