Package-level declarations

Types

Link copied to clipboard

Convenience factory for common AI API configuration fields (base URL, model, API key).

Link copied to clipboard
data class HostEnvironment(val hostKind: HostKind, val model: GlassesModel)

Host + device context provided to the developer entry.

Link copied to clipboard

Where this code is currently running.

Link copied to clipboard
data class UniversalAppContext(val environment: HostEnvironment, val client: GlassesClient, val scope: CoroutineScope? = null, val log: (String) -> Unit = {}, val onCapturedImage: (CapturedImage) -> Unit? = null, val settings: Map<String, String> = emptyMap())

Execution context passed to user commands.

Link copied to clipboard

Developer-implemented entry point.

Link copied to clipboard

Optional simplified entry for developers who want to write one set of commands for all hosts/devices.

Link copied to clipboard

A user-facing action (host renders it as a button/menu item/gesture selection, etc).

Link copied to clipboard

Default host-side command filtering policy provided by the SDK.

Link copied to clipboard
data class UserSettingField(val key: String, val label: String, val hint: String = "", val defaultValue: String = "", val inputType: UserSettingInputType = UserSettingInputType.TEXT)

Describes a single user-configurable setting field.

Link copied to clipboard

Input type hint for the host UI when rendering a UserSettingField.

Functions

Link copied to clipboard

Convenience wrapper for hosts: apply SDK default filtering on top of UniversalAppEntry.commands.