From 5ca5d957886e04c73f5725e5e63d8eb883bad16a Mon Sep 17 00:00:00 2001 From: dsdanielpark Date: Tue, 23 Jan 2024 19:27:53 +0900 Subject: [PATCH] feat: add get chat history method --- bardapi/chat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bardapi/chat.py b/bardapi/chat.py index fb561a15e..e3d78055c 100644 --- a/bardapi/chat.py +++ b/bardapi/chat.py @@ -220,6 +220,9 @@ def display_chat_history(self) -> None: print(SEPARATOR_LINE) + def get_chat_history(self) -> list: + return self.chat_history + @staticmethod def _is_valid_input(user_input: str) -> bool: """