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

Method user_input

aider/io.py:775–789  ·  view source on GitHub ↗
(self, inp, log_only=True)

Source from the content-addressed store, hash-verified

773 self.console.print(Text(inp), **style)
774
775 def user_input(self, inp, log_only=True):
776 if not log_only:
777 self.display_user_input(inp)
778
779 prefix = "####"
780 if inp:
781 hist = inp.splitlines()
782 else:
783 hist = ["<blank>"]
784
785 hist = f" \n{prefix} ".join(hist)
786
787 hist = f"""
788{prefix} {hist}"""
789 self.append_chat_history(hist, linebreak=True)
790
791 # OUTPUT
792

Callers 4

get_inputMethod · 0.95
confirm_askMethod · 0.95
run_streamMethod · 0.80
runMethod · 0.80

Calls 2

display_user_inputMethod · 0.95
append_chat_historyMethod · 0.95

Tested by

no test coverage detected