public enum Exposure

  1. Object
  2. Enum<Exposure>
  3. Exposure

ImplementsComparable<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 constants

ASSISTANTOffered to the platform: Siri and Spotlight on iOS, launcher shortcuts on Android, the Intents window in the simulator.
MODELOffered to language models through Intents.asTools(), which projects the declaration down to a com.codename1.ai.Tool.

Methods

public static Exposure[] values()
public static Exposure valueOf(String name)

Inherited methods

Enum constant details

ASSISTANT

ASSISTANT
Offered to the platform: Siri and Spotlight on iOS, launcher shortcuts on Android, the Intents window in the simulator.

MODEL

MODEL
Offered to language models through Intents.asTools(), which projects the declaration down to a com.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

public static Exposure[] values()

valueOf

public static Exposure valueOf(String name)