Package com.smartgwt.client.ai
Class AIResponse
- All Implemented Interfaces:
- HasHandlers
Represents a response from AI.
- 
Field SummaryFields inherited from class com.smartgwt.client.core.RefDataClassidFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionIf thetypeis ERROR, the type of error that occurred, if known.The message returned from the AI service in response to the request.static AIResponsegetOrCreateRef(JavaScriptObject jsObj) setErrorType(AIResponseErrorType errorType) If thetypeis ERROR, the type of error that occurred, if known.setMessage(AIMessage message) The message returned from the AI service in response to the request.Methods inherited from class com.smartgwt.client.util.AsyncOperationResultgetCancellationReason, getDisabledMessage, getErrorMessage, getType, setCancellationReason, setDisabledMessage, setErrorMessage, setTypeMethods inherited from class com.smartgwt.client.core.RefDataClassgetRef, getRef, internalSetIDMethods inherited from class com.smartgwt.client.core.DataClassapplyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
- 
Constructor Details- 
AIResponsepublic AIResponse()
- 
AIResponse
 
- 
- 
Method Details- 
getOrCreateRef
- 
setErrorTypeIf thetypeis ERROR, the type of error that occurred, if known.- Parameters:
- errorType- New errorType value. Default value is null
- Returns:
- AIResponseinstance, for chaining setter calls
 
- 
getErrorTypeIf thetypeis ERROR, the type of error that occurred, if known.- Returns:
- Current errorType value. Default value is null
 
- 
setMessageThe message returned from the AI service in response to the request.- Parameters:
- message- New message value. Default value is null
- Returns:
- AIResponseinstance, for chaining setter calls
 
- 
getMessageThe message returned from the AI service in response to the request.- Returns:
- Current message value. Default value is null
 
 
-