Package com.smartgwt.client.ai
Class SingleSourceAIRequest
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.ai.SingleSourceAIRequest
- All Implemented Interfaces:
HasHandlers
- Direct Known Subclasses:
AIFieldRequest
,SystemAIRequest
,UserAIRequest
Represents a request to AI from a single
source
in some context.-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdditional messages.static SingleSourceAIRequest
getOrCreateRef
(JavaScriptObject jsObj) The data of the request.The type of data of theprompt
.setAdditionalMessages
(AIMessage... additionalMessages) Additional messages.The data of the request.setPromptType
(AIContentType promptType) The type of data of theprompt
.Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetID
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
-
SingleSourceAIRequest
public SingleSourceAIRequest() -
SingleSourceAIRequest
-
-
Method Details
-
getOrCreateRef
-
setAdditionalMessages
Additional messages. For example, theprompt
may be an image, and additional text about the request can be added to this array.- Parameters:
additionalMessages
- New additionalMessages value. Default value is null- Returns:
SingleSourceAIRequest
instance, for chaining setter calls
-
getAdditionalMessages
Additional messages. For example, theprompt
may be an image, and additional text about the request can be added to this array.- Returns:
- Current additionalMessages value. Default value is null
-
setPrompt
The data of the request. The type of data is specified by thepromptType
.- Parameters:
prompt
- New prompt value. Default value is null- Returns:
SingleSourceAIRequest
instance, for chaining setter calls
-
getPrompt
The data of the request. The type of data is specified by thepromptType
.- Returns:
- Current prompt value. Default value is null
-
setPromptType
The type of data of theprompt
.- Parameters:
promptType
- New promptType value. Default value is "text"- Returns:
SingleSourceAIRequest
instance, for chaining setter calls
-
getPromptType
The type of data of theprompt
.- Returns:
- Current promptType value. Default value is "text"
-