AIDocAssistant

Shared abstraction over the platform-specific docs AI assistant.

Bindings:

  • Android google flavor: Gemini Nano implementation

  • Android fdroid flavor: keyword-search fallback

  • Desktop/iOS: keyword-search fallback

Inheritors

Properties

Link copied to clipboard
abstract val modelStatus: StateFlow<ModelReadiness>

Current model readiness state for lifecycle/download UX.

Functions

Link copied to clipboard
abstract suspend fun answer(question: String, currentPageId: String? = null): AIDocAssistantResult

Answer a user question about Meshtastic using bundled documentation context.

Link copied to clipboard
abstract fun answerStream(question: String, currentPageId: String? = null): Flow<AIDocAssistantResult>

Answer a user question about Meshtastic, streaming the results as they arrive.

Link copied to clipboard
abstract suspend fun isSupported(): Boolean

Whether the AI assistant is available on the current platform/device.

Link copied to clipboard
abstract fun resetSession()

Reset the conversation session. Call when starting a new conversation thread.