Class AICommunicationUtil

java.lang.Object
com.vaadin.copilot.ai.AICommunicationUtil

public class AICommunicationUtil extends Object
  • Constructor Details

    • AICommunicationUtil

      public AICommunicationUtil()
  • Method Details

    • promptTextCannotCall

      public static void promptTextCannotCall(com.fasterxml.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Method handling the case when the AI cannot be called, because the proKey or machineId is missing.
      Parameters:
      data - - the data object, we are getting from the client/browser
      devToolsInterface - - the devtools interface we use to communicate with the client/browser
    • getHillaSourceFiles

      public static Map<String,String> getHillaSourceFiles(com.fasterxml.jackson.databind.JsonNode data)
    • handlingExceptionsAndNotifyDevtoolsInterface

      public static void handlingExceptionsAndNotifyDevtoolsInterface(com.fasterxml.jackson.databind.JsonNode dataJson, com.vaadin.base.devserver.DevToolsInterface devToolsInterface, Throwable e)