Class AIResponse

All Implemented Interfaces:
HasHandlers

public class AIResponse extends AsyncOperationResult
Represents a response from AI.
  • Constructor Details

    • AIResponse

      public AIResponse()
    • AIResponse

      public AIResponse(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static AIResponse getOrCreateRef(JavaScriptObject jsObj)
    • setErrorType

      public AIResponse setErrorType(AIResponseErrorType errorType)
      If the type is ERROR, the type of error that occurred, if known.
      Parameters:
      errorType - New errorType value. Default value is null
      Returns:
      AIResponse instance, for chaining setter calls
    • getErrorType

      public AIResponseErrorType getErrorType()
      If the type is ERROR, the type of error that occurred, if known.
      Returns:
      Current errorType value. Default value is null
    • setMessage

      public AIResponse setMessage(AIMessage message)
      The message returned from the AI service in response to the request.
      Parameters:
      message - New message value. Default value is null
      Returns:
      AIResponse instance, for chaining setter calls
    • getMessage

      public AIMessage getMessage()
      The message returned from the AI service in response to the request.
      Returns:
      Current message value. Default value is null