(self, inp, log_only=True)
| 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 |
no test coverage detected