Skip to main content

Interface: IAiApi

Defined in: Extensions/ExtensionApiTypes.ts:773

RESERVED in v1. The permission slot, manifest field, and provider role (aiAssistant) exist so extensions and the host can plan around AI integration without breaking the API contract later. The host UI for "Ask AI about this verse" lives in a follow-up spec.

Extensions that want to ship AI features in v1 should use INetworkApi to call their own AI backend; the only thing missing is the host's built-in panel for displaying AI responses.

Methods

isAvailable()

isAvailable(): Promise<boolean>

Defined in: Extensions/ExtensionApiTypes.ts:775

True if the host has any active AI provider. Always false in v1.

Returns

Promise<boolean>