Class SummarizeRecordsRequest
- All Implemented Interfaces:
HasHandlers
The
provided records
are split into batches of varying
lengths (see maxRecordsPerBatch
). For each
batch, a SummarizeRecordsPartialResult
will be generated with either information about
the reason for a non-successful outcome, or the generated summaries for records in the batch.
-
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 TypeMethodDescriptionTheAIFieldRequest
generated from a natural language description of how to summarize each record, which may include a request for relevant supplemental information.The source of theaiFieldRequest
.If provided, theCancellationController
that will be looked to for whether the record summarization operation is canceled.If specified, theDataBoundComponent
that is displaying or managing therecords
.TheDataSource
containing therecords
.Maximum number of batches being summarized at any given time.If set, the maximum number of records that will be processed via AI in a single request.The maximum number of retries of any one particular request to anAIEngine
.static SummarizeRecordsRequest
getOrCreateRef
(JavaScriptObject jsObj) Record[]
The records to summarize, fromDataSource
dataSource
.setAIFieldRequest
(AIFieldRequest aiFieldRequest) TheAIFieldRequest
generated from a natural language description of how to summarize each record, which may include a request for relevant supplemental information.setAiFieldRequestSource
(AIMessageSource aiFieldRequestSource) The source of theaiFieldRequest
.setCancellationController
(CancellationController cancellationController) If provided, theCancellationController
that will be looked to for whether the record summarization operation is canceled.setComponent
(DataBoundComponent component) If specified, theDataBoundComponent
that is displaying or managing therecords
.setDataSource
(DataSource dataSource) TheDataSource
containing therecords
.setMaxConcurrent
(Integer maxConcurrent) Maximum number of batches being summarized at any given time.setMaxRecordsPerBatch
(Integer maxRecordsPerBatch) If set, the maximum number of records that will be processed via AI in a single request.setMaxRetries
(Integer maxRetries) The maximum number of retries of any one particular request to anAIEngine
.setRecords
(Record... records) The records to summarize, fromDataSource
dataSource
.Methods inherited from class com.smartgwt.client.ai.DataBoundAIRequest
getExcludeFieldNames, setExcludeFieldNames
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
-
SummarizeRecordsRequest
public SummarizeRecordsRequest() -
SummarizeRecordsRequest
-
-
Method Details
-
getOrCreateRef
-
setAIFieldRequest
TheAIFieldRequest
generated from a natural language description of how to summarize each record, which may include a request for relevant supplemental information.- Parameters:
aiFieldRequest
- New aiFieldRequest value. Default value is null- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls- See Also:
-
getAIFieldRequest
TheAIFieldRequest
generated from a natural language description of how to summarize each record, which may include a request for relevant supplemental information.- Returns:
- Current aiFieldRequest value. Default value is null
- See Also:
-
setAiFieldRequestSource
The source of theaiFieldRequest
.- Parameters:
aiFieldRequestSource
- New aiFieldRequestSource value. Default value is null- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls
-
getAiFieldRequestSource
The source of theaiFieldRequest
.- Returns:
- Current aiFieldRequestSource value. Default value is null
-
setCancellationController
public SummarizeRecordsRequest setCancellationController(CancellationController cancellationController) If provided, theCancellationController
that will be looked to for whether the record summarization operation is canceled.- Overrides:
setCancellationController
in classAsyncOperationParams
- Parameters:
cancellationController
- New cancellationController value. Default value is null- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls
-
getCancellationController
If provided, theCancellationController
that will be looked to for whether the record summarization operation is canceled.- Overrides:
getCancellationController
in classAsyncOperationParams
- Returns:
- Current cancellationController value. Default value is null
-
setComponent
If specified, theDataBoundComponent
that is displaying or managing therecords
.The component should be bound to the same
dataSource
of the request or aDataSource
inheriting from it.- Overrides:
setComponent
in classAsyncDataBoundOperationParams
- Parameters:
component
- New component value. Default value is null- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls
-
getComponent
If specified, theDataBoundComponent
that is displaying or managing therecords
.The component should be bound to the same
dataSource
of the request or aDataSource
inheriting from it.- Overrides:
getComponent
in classAsyncDataBoundOperationParams
- Returns:
- Current component value. Default value is null
-
setDataSource
TheDataSource
containing therecords
.If
component
is also specified, then the component should be bound to the sameDataSource
or aDataSource
inheriting from it.- Overrides:
setDataSource
in classAsyncDataBoundOperationParams
- Parameters:
dataSource
- New dataSource value. Default value is null- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls
-
getDataSource
TheDataSource
containing therecords
.If
component
is also specified, then the component should be bound to the sameDataSource
or aDataSource
inheriting from it.- Overrides:
getDataSource
in classAsyncDataBoundOperationParams
- Returns:
- Current dataSource value. Default value is null
-
setMaxConcurrent
Maximum number of batches being summarized at any given time.- Parameters:
maxConcurrent
- New maxConcurrent value. Default value is null- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls
-
getMaxConcurrent
Maximum number of batches being summarized at any given time.- Returns:
- Current maxConcurrent value. Default value is null
-
setMaxRecordsPerBatch
If set, the maximum number of records that will be processed via AI in a single request. This can be further or alternatively limited by theaiFieldRequest
'smaxRecordsPerBatch
setting.By default, requests will be filled with as many records as will fit into a single request to the selected
AIEngine
(s).Note : This is an advanced setting
- Parameters:
maxRecordsPerBatch
- New maxRecordsPerBatch value. Default value is null- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls
-
getMaxRecordsPerBatch
If set, the maximum number of records that will be processed via AI in a single request. This can be further or alternatively limited by theaiFieldRequest
'smaxRecordsPerBatch
setting.By default, requests will be filled with as many records as will fit into a single request to the selected
AIEngine
(s).- Returns:
- Current maxRecordsPerBatch value. Default value is null
-
setMaxRetries
The maximum number of retries of any one particular request to anAIEngine
.- Overrides:
setMaxRetries
in classDataBoundAIRequest
- Parameters:
maxRetries
- New maxRetries value. Default value is 2- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls
-
getMaxRetries
The maximum number of retries of any one particular request to anAIEngine
.- Overrides:
getMaxRetries
in classDataBoundAIRequest
- Returns:
- Current maxRetries value. Default value is 2
-
setRecords
The records to summarize, fromDataSource
dataSource
.- Parameters:
records
- New records value. Default value is null- Returns:
SummarizeRecordsRequest
instance, for chaining setter calls
-
getRecords
The records to summarize, fromDataSource
dataSource
.- Returns:
- Current records value. Default value is null
-