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 SummaryNested Classes
- 
Method SummaryModifier 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- 
loadSettingsLoads the ChatGPT settings- Returns:
- The list of settings
- Throws:
- ServerException- an error happened in the server application
 
- 
saveSettingsSaves the ChatGPT settings- Parameters:
- settings- The list of settings to save
- Throws:
- ServerException- an error happened in the server application
 
- 
startThreadStarts a new thread with ChatGPT- Parameters:
- initialQuestion- The first question to ask
- documents- The population of documents to use
- Throws:
- ServerException- an error happened in the server application
 
- 
askSends a question to ChatGPT in the current thread- Parameters:
- question- The question to ask
- Throws:
- ServerException- an error happened in the server application
 
- 
getAnswerGets 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
 
 
-