Class AiTableMetaData
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.tables.QSupplementalTableMetaData
com.kingsrook.qqq.backend.core.actions.ai.AiTableMetaData
- All Implemented Interfaces:
Cloneable
Supplemental table meta-data (type "ai") for the AI tool kernel: how much of
the table is exposed to a model, and an optional description written for a
model (aiDescription), used by describe_table, search_help and the app
digest.
A null exposure means "use the default": NONE for the assistant's own
tables, user-session tables and OAuth tables, else the kernel settings'
defaultExposure. An explicit exposure always wins over the default.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QSupplementalTableMetaDatafinishClone(QSupplementalTableMetaData abstractClone) finish the cloning operation started in the base class. copy all state from the subclass into the input clone (which can be safely casted to the subclass's type, as it was obtained by super.clone()) Rather than making this public and breaking all existing implementations that don't have it - we're making it protected, with a one-time warning if it isn't implemented in a subclass.Getter for aiDescriptionGetter for classification (null means not classified)Getter for exposuregetType()Getter for typestatic AiTableMetaDataof(QTableMetaData table) The AiTableMetaData on a table, or null if it has none.static AiTableMetaDataofOrWithNew(QTableMetaData table) The AiTableMetaData on a table - adding a new (empty) one if it has none.voidsetAiDescription(String aiDescription) Setter for aiDescriptionvoidsetClassification(DataClassification classification) Setter for classificationvoidsetExposure(AiExposure exposure) Setter for exposurewithAiDescription(String aiDescription) Fluent setter for aiDescriptionwithClassification(DataClassification classification) Fluent setter for classificationwithExposure(AiExposure exposure) Fluent setter for exposureMethods inherited from class com.kingsrook.qqq.backend.core.model.metadata.tables.QSupplementalTableMetaData
clone, enrich, includeInFullFrontendMetaData, includeInPartialFrontendMetaData, of, ofOrWithNew, validate
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
AiTableMetaData
public AiTableMetaData()
-
-
Method Details
-
of
The AiTableMetaData on a table, or null if it has none. -
ofOrWithNew
The AiTableMetaData on a table - adding a new (empty) one if it has none. -
getType
Description copied from class:QSupplementalTableMetaDataGetter for type- Specified by:
getTypein classQSupplementalTableMetaData
-
finishClone
Description copied from class:QSupplementalTableMetaDatafinish the cloning operation started in the base class. copy all state from the subclass into the input clone (which can be safely casted to the subclass's type, as it was obtained by super.clone()) Rather than making this public and breaking all existing implementations that don't have it - we're making it protected, with a one-time warning if it isn't implemented in a subclass.- Overrides:
finishClonein classQSupplementalTableMetaData
-
getExposure
Getter for exposure -
setExposure
Setter for exposure -
withExposure
Fluent setter for exposure -
getAiDescription
Getter for aiDescription -
setAiDescription
Setter for aiDescription -
withAiDescription
Fluent setter for aiDescription -
getClassification
Getter for classification (null means not classified) -
setClassification
Setter for classification -
withClassification
Fluent setter for classification
-