Interface ChatGPTService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("chatgpt")
public interface ChatGPTService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the ChatGPT AI.
- Since:
- 8.9.40
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidSends a question to ChatGPT in the current threadGets the partial answer to the last questionLoads the ChatGPT settingsvoidsaveSettings(List<GUIValue> settings) Saves the ChatGPT settingsvoidstartThread(String initialQuestion, List<GUIDocument> documents) Starts a new thread with ChatGPT
-
Method Details
-
loadSettings
Loads the ChatGPT settings- Returns:
- The list of settings
- Throws:
ServerException- an error happened in the server application
-
saveSettings
Saves the ChatGPT settings- Parameters:
settings- The list of settings to save- Throws:
ServerException- an error happened in the server application
-
startThread
Starts a new thread with ChatGPT- Parameters:
initialQuestion- The first question to askdocuments- The population of documents to use- Throws:
ServerException- an error happened in the server application
-
ask
Sends a question to ChatGPT in the current thread- Parameters:
question- The question to ask- Throws:
ServerException- an error happened in the server application
-
getAnswer
Gets the partial answer to the last question- Returns:
- key is one of 'complete' or 'partial', value is the consolidated response until now
- Throws:
ServerException- an error happened in the server application
-