MCPcopy
hub / github.com/Aider-AI/aider / run_one

Method run_one

aider/coders/base_coder.py:924–944  ·  view source on GitHub ↗
(self, user_message, preproc)

Source from the content-addressed store, hash-verified

922 return inp
923
924 def run_one(self, user_message, preproc):
925 self.init_before_message()
926
927 if preproc:
928 message = self.preproc_user_input(user_message)
929 else:
930 message = user_message
931
932 while message:
933 self.reflected_message = None
934 list(self.send_message(message))
935
936 if not self.reflected_message:
937 break
938
939 if self.num_reflections >= self.max_reflections:
940 self.io.tool_warning(f"Only {self.max_reflections} reflections allowed, stopping.")
941 return
942
943 self.num_reflections += 1
944 message = self.reflected_message
945
946 def check_and_open_urls(self, exc, friendly_msg=None):
947 """Check exception for URLs, offer to open in a browser, with user-friendly error msgs."""

Callers 1

runMethod · 0.95

Calls 4

init_before_messageMethod · 0.95
preproc_user_inputMethod · 0.95
send_messageMethod · 0.95
tool_warningMethod · 0.45

Tested by

no test coverage detected