Enum Class AiExposure
- All Implemented Interfaces:
Serializable,Comparable<AiExposure>,Constable
How much of a table or field the AI tool kernel may expose to a model.
Ordered from most to least restrictive:
NONE - invisible to the assistant: omitted from descriptions, and rejected
if named in a filter, field list or sort.
METADATA_ONLY - the assistant knows it exists and may filter (or sort) on it
server-side, but its values are never sent to the model.
MASKED - values are sent partially masked (e.g., j***@example.com, ***1234).
VALUES - values are sent (after redaction and truncation).
A table's exposure caps the exposure of each of its fields.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether values at this exposure may be sent to a model (masked or not).mostRestrictive(AiExposure other) The more restrictive of this exposure and another (null is ignored).static AiExposureReturns the enum constant of this class with the specified name.static AiExposure[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
METADATA_ONLY
-
MASKED
-
VALUES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
mostRestrictive
The more restrictive of this exposure and another (null is ignored). -
allowsValues
public boolean allowsValues()Whether values at this exposure may be sent to a model (masked or not).
-