public class SummarizeValueRequest extends DataBoundAIRequest
id
factoryCreated, factoryProperties
Constructor and Description |
---|
SummarizeValueRequest() |
SummarizeValueRequest(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
SingleSourceAIRequest |
getAIRequest()
The natural language description of how to summarize the value, which may include a request for relevant supplemental
information.
|
AIMessageSource |
getAIRequestSource()
The source of the
aiRequest . |
DataBoundComponent |
getComponent()
If specified, the
DataBoundComponent displaying the value . |
DataSource |
getDataSource()
If specified, the
DataSource where the value originated. |
SummarizeValueExample[] |
getExamples()
If specified, examples to provide to AI.
|
java.lang.String |
getFieldName()
If specified, the name of the field containing the
value . |
static SummarizeValueRequest |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
Record |
getRecord()
|
java.lang.String[] |
getRelevantFieldNames()
If specified, the names of the
DBCField s of the component (or DataSourceField s of the dataSource ) that are relevant to the request to summarize the value . |
java.lang.Object |
getValue()
The value to summarize.
|
AIContentType |
getValueType()
The type of the
value . |
SummarizeValueRequest |
setAIRequest(SingleSourceAIRequest aiRequest)
The natural language description of how to summarize the value, which may include a request for relevant supplemental
information.
|
SummarizeValueRequest |
setAIRequestSource(AIMessageSource aiRequestSource)
The source of the
aiRequest . |
SummarizeValueRequest |
setComponent(DataBoundComponent component)
If specified, the
DataBoundComponent displaying the value . |
SummarizeValueRequest |
setDataSource(DataSource dataSource)
If specified, the
DataSource where the value originated. |
SummarizeValueRequest |
setExamples(SummarizeValueExample... examples)
If specified, examples to provide to AI.
|
SummarizeValueRequest |
setFieldName(java.lang.String fieldName)
If specified, the name of the field containing the
value . |
SummarizeValueRequest |
setRecord(Record record)
|
SummarizeValueRequest |
setRelevantFieldNames(java.lang.String... relevantFieldNames)
If specified, the names of the
DBCField s of the component (or DataSourceField s of the dataSource ) that are relevant to the request to summarize the value . |
SummarizeValueRequest |
setValue(java.lang.Object value)
The value to summarize.
|
SummarizeValueRequest |
setValueType(AIContentType valueType)
The type of the
value . |
getExcludeFieldNames, getMaxRetries, setExcludeFieldNames, setMaxRetries
getCancellationController, setCancellationController
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 SummarizeValueRequest()
public SummarizeValueRequest(com.google.gwt.core.client.JavaScriptObject jsObj)
public static SummarizeValueRequest getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public SummarizeValueRequest setAIRequest(SingleSourceAIRequest aiRequest)
Note: For more consistently-formatted AI-generated summaries of values, it is often helpful to specify
examples
that include the desired output form.
aiRequest
- New aiRequest value. Default value is nullSummarizeValueRequest
instance, for chaining setter callspublic SingleSourceAIRequest getAIRequest()
Note: For more consistently-formatted AI-generated summaries of values, it is often helpful to specify
examples
that include the desired output form.
public SummarizeValueRequest setAIRequestSource(AIMessageSource aiRequestSource)
aiRequest
.aiRequestSource
- New aiRequestSource value. Default value is "system"SummarizeValueRequest
instance, for chaining setter callspublic AIMessageSource getAIRequestSource()
aiRequest
.public SummarizeValueRequest setComponent(DataBoundComponent component)
DataBoundComponent
displaying the value
. If dataSource
is also specified, then the component should be
bound to the same DataSource
or a DataSource
inheriting from it.
setComponent
in class AsyncDataBoundOperationParams
component
- New component value. Default value is nullSummarizeValueRequest
instance, for chaining setter callspublic DataBoundComponent getComponent()
DataBoundComponent
displaying the value
. If dataSource
is also specified, then the component should be
bound to the same DataSource
or a DataSource
inheriting from it.
getComponent
in class AsyncDataBoundOperationParams
public SummarizeValueRequest setDataSource(DataSource dataSource)
DataSource
where the value
originated. If component
is also specified, then the component should be
bound to the same DataSource
or a DataSource
inheriting from it.
setDataSource
in class AsyncDataBoundOperationParams
dataSource
- New dataSource value. Default value is nullSummarizeValueRequest
instance, for chaining setter callspublic DataSource getDataSource()
DataSource
where the value
originated. If component
is also specified, then the component should be
bound to the same DataSource
or a DataSource
inheriting from it.
getDataSource
in class AsyncDataBoundOperationParams
public SummarizeValueRequest setExamples(SummarizeValueExample... examples)
Examples that include the desired output form often help to make the formatting of AI-generated summaries of values more consistent.
examples
- New examples value. Default value is nullSummarizeValueRequest
instance, for chaining setter callspublic SummarizeValueExample[] getExamples()
Examples that include the desired output form often help to make the formatting of AI-generated summaries of values more consistent.
public SummarizeValueRequest setFieldName(java.lang.String fieldName)
value
.fieldName
- New fieldName value. Default value is nullSummarizeValueRequest
instance, for chaining setter callsFieldName
public java.lang.String getFieldName()
value
.FieldName
public SummarizeValueRequest setRecord(Record record)
Record
containing the value
. If supplying the record, then the component
and/or dataSource
must be specified as well.
record
- New record value. Default value is nullSummarizeValueRequest
instance, for chaining setter callspublic Record getRecord()
Record
containing the value
. If supplying the record, then the component
and/or dataSource
must be specified as well.
public SummarizeValueRequest setRelevantFieldNames(java.lang.String... relevantFieldNames)
DBCField
s of the component
(or DataSourceField
s of the dataSource
) that are relevant to the request to summarize the value
.relevantFieldNames
- New relevantFieldNames value. Default value is nullSummarizeValueRequest
instance, for chaining setter callsFieldName
public java.lang.String[] getRelevantFieldNames()
DBCField
s of the component
(or DataSourceField
s of the dataSource
) that are relevant to the request to summarize the value
.FieldName
public SummarizeValueRequest setValue(java.lang.Object value)
valueType
.value
- New value value. Default value is nullSummarizeValueRequest
instance, for chaining setter callspublic java.lang.Object getValue()
valueType
.public SummarizeValueRequest setValueType(AIContentType valueType)
value
.valueType
- New valueType value. Default value is "text"SummarizeValueRequest
instance, for chaining setter callspublic AIContentType getValueType()
value
.