Package com.smartgwt.client.ai
Class AIFieldRequest
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.ai.SingleSourceAIRequest
com.smartgwt.client.ai.AIFieldRequest
- All Implemented Interfaces:
HasHandlers
Settings that configure requests to AI to generate the values for a field.
-
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 TypeMethodDescriptionString[]
If thevalueClass
is CATEGORICAL or ORDINAL, the list of available categories.When generating values for a list of records that are split into batches, the maximum number of records per batch.If thevalueClass
is INTERVAL or RATIO, the maximum value that can be generated.If thevalueClass
is INTERVAL or RATIO, the minimum value that can be generated.static AIFieldRequest
getOrCreateRef
(JavaScriptObject jsObj) String[]
The names of fields that are relevant to eachSummarizeRecordsRequest
.The class of value that AI will be asked to generate for the field.setCategories
(String... categories) If thevalueClass
is CATEGORICAL or ORDINAL, the list of available categories.setMaxRecordsPerBatch
(Integer maxRecordsPerBatch) When generating values for a list of records that are split into batches, the maximum number of records per batch.setMaxValue
(Integer maxValue) If thevalueClass
is INTERVAL or RATIO, the maximum value that can be generated.setMinValue
(Integer minValue) If thevalueClass
is INTERVAL or RATIO, the minimum value that can be generated.setRelevantFieldNames
(String... relevantFieldNames) The names of fields that are relevant to eachSummarizeRecordsRequest
.setValueClass
(ValueClass valueClass) The class of value that AI will be asked to generate for the field.Methods inherited from class com.smartgwt.client.ai.SingleSourceAIRequest
getAdditionalMessages, getPrompt, getPromptType, setAdditionalMessages, setPrompt, setPromptType
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
-
AIFieldRequest
public AIFieldRequest() -
AIFieldRequest
-
-
Method Details
-
getOrCreateRef
-
setCategories
If thevalueClass
is CATEGORICAL or ORDINAL, the list of available categories.- Parameters:
categories
- New categories value. Default value is null- Returns:
AIFieldRequest
instance, for chaining setter calls
-
getCategories
If thevalueClass
is CATEGORICAL or ORDINAL, the list of available categories.- Returns:
- Current categories value. Default value is null
-
setMaxRecordsPerBatch
When generating values for a list of records that are split into batches, the maximum number of records per batch.- Parameters:
maxRecordsPerBatch
- New maxRecordsPerBatch value. Default value is null- Returns:
AIFieldRequest
instance, for chaining setter calls
-
getMaxRecordsPerBatch
When generating values for a list of records that are split into batches, the maximum number of records per batch.- Returns:
- Current maxRecordsPerBatch value. Default value is null
-
setMaxValue
If thevalueClass
is INTERVAL or RATIO, the maximum value that can be generated. Ifnull
, then there is no maximum.- Parameters:
maxValue
- New maxValue value. Default value is null- Returns:
AIFieldRequest
instance, for chaining setter calls
-
getMaxValue
If thevalueClass
is INTERVAL or RATIO, the maximum value that can be generated. Ifnull
, then there is no maximum.- Returns:
- Current maxValue value. Default value is null
-
setMinValue
If thevalueClass
is INTERVAL or RATIO, the minimum value that can be generated. Ifnull
, then there is no minimum.- Parameters:
minValue
- New minValue value. Default value is null- Returns:
AIFieldRequest
instance, for chaining setter calls
-
getMinValue
If thevalueClass
is INTERVAL or RATIO, the minimum value that can be generated. Ifnull
, then there is no minimum.- Returns:
- Current minValue value. Default value is null
-
setRelevantFieldNames
The names of fields that are relevant to eachSummarizeRecordsRequest
.- Parameters:
relevantFieldNames
- New relevantFieldNames value. Default value is null- Returns:
AIFieldRequest
instance, for chaining setter calls- See Also:
-
getRelevantFieldNames
The names of fields that are relevant to eachSummarizeRecordsRequest
.- Returns:
- Current relevantFieldNames value. Default value is null
- See Also:
-
setValueClass
The class of value that AI will be asked to generate for the field.- Parameters:
valueClass
- New valueClass value. Default value is "general"- Returns:
AIFieldRequest
instance, for chaining setter calls
-
getValueClass
The class of value that AI will be asked to generate for the field.- Returns:
- Current valueClass value. Default value is "general"
-