Package com.smartgwt.client.ai
Class AIMessageWithSource
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.ai.AIMessage
com.smartgwt.client.ai.AIMessageWithSource
- All Implemented Interfaces:
HasHandlers
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AIMessageWithSource
getOrCreateRef
(JavaScriptObject jsObj) The source or producer of the message.setSource
(AIMessageSource source) The source or producer of the message.Methods inherited from class com.smartgwt.client.ai.AIMessage
getContent, getType, setContent, setType
Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, 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
-
AIMessageWithSource
public AIMessageWithSource() -
AIMessageWithSource
-
-
Method Details
-
getOrCreateRef
-
setSource
The source or producer of the message. If unspecified, "user" is assumed.- Parameters:
source
- New source value. Default value is "user"- Returns:
AIMessageWithSource
instance, for chaining setter calls
-
getSource
The source or producer of the message. If unspecified, "user" is assumed.- Returns:
- Current source value. Default value is "user"
-