public class UserAIRequest extends SingleSourceAIRequest
ListGrid
; in such a context, the
user's request is their description of which records they would like to see. The user's request is combined with
other messages, data, and instructions provided by the framework to create AIRequest
s
that are sent to the AI engine for the purpose of fulfilling the user's request.
id
factoryCreated, factoryProperties
Constructor and Description |
---|
UserAIRequest() |
UserAIRequest(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
AIMessage[] |
getAdditionalMessages()
Additional messages from the user.
|
static UserAIRequest |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.Object |
getPrompt()
The data of the user's request.
|
AIContentType |
getPromptType()
The type of data of the user-specified
prompt . |
UserAIRequest |
setAdditionalMessages(AIMessage... additionalMessages)
Additional messages from the user.
|
UserAIRequest |
setPrompt(java.lang.Object prompt)
The data of the user's request.
|
UserAIRequest |
setPromptType(AIContentType promptType)
The type of data of the user-specified
prompt . |
getRef, getRef, internalSetID
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
public UserAIRequest()
public UserAIRequest(com.google.gwt.core.client.JavaScriptObject jsObj)
public static UserAIRequest getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public UserAIRequest setAdditionalMessages(AIMessage... additionalMessages)
prompt
may be
an image, and additional text from the user about their request can be added to this array.setAdditionalMessages
in class SingleSourceAIRequest
additionalMessages
- New additionalMessages value. Default value is nullUserAIRequest
instance, for chaining setter callspublic AIMessage[] getAdditionalMessages()
prompt
may be
an image, and additional text from the user about their request can be added to this array.getAdditionalMessages
in class SingleSourceAIRequest
public UserAIRequest setPrompt(java.lang.Object prompt)
promptType
.setPrompt
in class SingleSourceAIRequest
prompt
- New prompt value. Default value is nullUserAIRequest
instance, for chaining setter callspublic java.lang.Object getPrompt()
promptType
.getPrompt
in class SingleSourceAIRequest
public UserAIRequest setPromptType(AIContentType promptType)
prompt
.setPromptType
in class SingleSourceAIRequest
promptType
- New promptType value. Default value is "text"UserAIRequest
instance, for chaining setter callspublic AIContentType getPromptType()
prompt
.getPromptType
in class SingleSourceAIRequest