public class UserAIRequest extends DataClass
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 AIRequests that are sent to the AI engine for the purpose of fulfilling the user's request.
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.
|
java.lang.Integer |
getMaxRecordsPerBatch()
When processing this request on a list of records that are split into batches, the maximum number of records per batch.
|
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 |
setMaxRecordsPerBatch(java.lang.Integer maxRecordsPerBatch)
When processing this request on a list of records that are split into batches, the maximum number of records per batch.
|
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 . |
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.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.public UserAIRequest setMaxRecordsPerBatch(java.lang.Integer maxRecordsPerBatch)
maxRecordsPerBatch
- New maxRecordsPerBatch value. Default value is nullUserAIRequest
instance, for chaining setter callspublic java.lang.Integer getMaxRecordsPerBatch()
public UserAIRequest setPrompt(java.lang.Object prompt)
promptType
.prompt
- New prompt value. Default value is nullUserAIRequest
instance, for chaining setter callspublic java.lang.Object getPrompt()
promptType
.public UserAIRequest setPromptType(AIContentType promptType)
prompt
.promptType
- New promptType value. Default value is "text"UserAIRequest
instance, for chaining setter callspublic AIContentType getPromptType()
prompt
.