Documentation
    Preparing search index...

    Interface PajaLlmHostOptions

    UI and policy callbacks the Paja host needs from the page.

    interface PajaLlmHostOptions {
        confirm: PajaConfirmationHandler;
        provider?: HttpLlmProvider;
        store: PajaLlmConnectionStore;
        vault: PajaLlmVault;
        chooseConnection(
            candidates: readonly PajaLlmConnectionRecord[],
            context: PajaLlmChooserContext,
        ): Promise<PajaLlmConnectionRecord | null>;
        getIdentity(windowId: string): PajaLlmRequestIdentity;
        openPanel(): void;
        requestUnlock(signal?: AbortSignal): Promise<boolean>;
    }
    Index

    Properties

    Host confirmation dialog shared with signer, upload and other operations.

    provider?: HttpLlmProvider

    Provider transport; defaults to the streaming fetch-based provider.

    Methods

    • Ask for the vault password; resolve false when the user cancels or signal aborts.

      Parameters

      • Optionalsignal: AbortSignal

      Returns Promise<boolean>