4
4
import logging
5
5
6
6
from gooddata_api_client .model .chat_history_request import ChatHistoryRequest
7
+ from gooddata_api_client .model .chat_history_result import ChatHistoryResult
7
8
from gooddata_api_client .model .chat_request import ChatRequest
8
9
from gooddata_api_client .model .chat_result import ChatResult
9
10
@@ -83,7 +84,7 @@ def ai_chat(self, workspace_id: str, question: str) -> ChatResult:
83
84
response = self ._actions_api .ai_chat (workspace_id , chat_request , _check_return_type = False )
84
85
return response
85
86
86
- def ai_chat_history (self , workspace_id : str , chat_history_interaction_id : int = 0 ) -> ChatResult :
87
+ def ai_chat_history (self , workspace_id : str , chat_history_interaction_id : int = 0 ) -> ChatHistoryResult :
87
88
"""
88
89
Get chat history with AI in GoodData workspace.
89
90
@@ -96,3 +97,13 @@ def ai_chat_history(self, workspace_id: str, chat_history_interaction_id: int =
96
97
chat_history_request = ChatHistoryRequest (chat_history_interaction_id = chat_history_interaction_id )
97
98
response = self ._actions_api .ai_chat_history (workspace_id , chat_history_request , _check_return_type = False )
98
99
return response
100
+
101
+ def ai_chat_history_reset (self , workspace_id : str ) -> None :
102
+ """
103
+ Reset chat history with AI in GoodData workspace.
104
+
105
+ Args:
106
+ workspace_id: workspace identifier
107
+ """
108
+ chat_history_request = ChatHistoryRequest (reset = True )
109
+ self ._actions_api .ai_chat_history (workspace_id , chat_history_request , _check_return_type = False )
0 commit comments