Package com.vaadin.copilot.ai
Class AICommunicationUtil
java.lang.Object
com.vaadin.copilot.ai.AICommunicationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHillaSourceFiles(tools.jackson.databind.JsonNode data) static voidhandlingExceptionsAndNotifyDevtoolsInterface(tools.jackson.databind.JsonNode dataJson, com.vaadin.base.devserver.DevToolsInterface devToolsInterface, Throwable e) static voidpromptTextCannotCall(tools.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.
-
Constructor Details
-
AICommunicationUtil
public AICommunicationUtil()
-
-
Method Details
-
promptTextCannotCall
public static void promptTextCannotCall(tools.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/browserdevToolsInterface- - the devtools interface we use to communicate with the client/browser
-
getHillaSourceFiles
-
handlingExceptionsAndNotifyDevtoolsInterface
public static void handlingExceptionsAndNotifyDevtoolsInterface(tools.jackson.databind.JsonNode dataJson, com.vaadin.base.devserver.DevToolsInterface devToolsInterface, Throwable e)
-