Enum Exposure
- All Implemented Interfaces:
Comparable<Exposure>
Which consumers an intent is offered to.
The default is ASSISTANT alone, and that default is deliberate. An
assistant invokes an intent because a person asked for it by name, with the
platform mediating confirmation for anything destructive. A language model
invokes one because it inferred that it should, and it can infer wrong.
Those are different trust levels, so widening from one to the other is an
explicit act rather than something an app gets by accident.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOffered to the platform: Siri and Spotlight on iOS, launcher shortcuts on Android, the Intents window in the simulator.Offered to language models throughIntents.asTools(), which projects the declaration down to acom.codename1.ai.Tool. -
Method Summary
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
ASSISTANT
Offered to the platform: Siri and Spotlight on iOS, launcher shortcuts on Android, the Intents window in the simulator. -
MODEL
Offered to language models throughIntents.asTools(), which projects the declaration down to acom.codename1.ai.Tool. Nothing is exposed until the application actually hands those tools to a model or an MCP host, so this marks an intent as eligible, not as published.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-