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
  • Method Details

    • loadSettings

      List<GUIValue> loadSettings() throws ServerException
      Loads the ChatGPT settings
      Returns:
      The list of settings
      Throws:
      ServerException - an error happened in the server application
    • saveSettings

      void saveSettings(List<GUIValue> settings) throws ServerException
      Saves the ChatGPT settings
      Parameters:
      settings - The list of settings to save
      Throws:
      ServerException - an error happened in the server application
    • startThread

      void startThread(String initialQuestion, List<GUIDocument> documents) throws ServerException
      Starts 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
    • ask

      void ask(String question) throws ServerException
      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

      GUIValue getAnswer() throws ServerException
      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