AiFunctionProvider

Platform-agnostic contract defining operations that AI systems can invoke.

This interface abstracts the app capabilities exposed to system AI assistants. On Android, the implementation is wired to AppFunctions. On other platforms, equivalent mechanisms (App Intents on iOS, MCP on Desktop) can implement this.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun getChannelInfo(): GetChannelInfoResult

List all available mesh channels and their configurations.

Link copied to clipboard
abstract suspend fun getDeviceStatus(): GetDeviceStatusResult

Get status and metrics of the local mesh radio device.

Link copied to clipboard
abstract suspend fun getMeshMetrics(): GetMeshMetricsResult

Get aggregate network metrics and statistics for the entire mesh.

Link copied to clipboard
abstract suspend fun getMeshStatus(): MeshStatusResult

Get the current mesh network status summary.

Link copied to clipboard
abstract suspend fun getNodeDetails(nodeId: String): GetNodeDetailsResult

Get detailed telemetry and status for a specific mesh node.

Link copied to clipboard
abstract suspend fun getNodeList(): GetNodeListResult

List all nodes currently visible on the mesh network.

Link copied to clipboard
abstract suspend fun getRecentMessages(contactName: String? = null, limit: Int = DEFAULT_MESSAGE_LIMIT): GetRecentMessagesResult

Get recent messages from the mesh network.

Link copied to clipboard

Get a summary of unread messages grouped by contact.

Link copied to clipboard
abstract suspend fun sendMessage(text: String, recipientName: String? = null, channelName: String? = null): SendMessageResult

Send a text message over the mesh network.