Interface LanguageModelAccessInformation

Represents extension specific information about the access to language models.

Stubbed

interface LanguageModelAccessInformation {
    onDidChange: Event<void>;
    canSendRequest(chat): undefined | boolean;
}

Properties

Methods

Properties

onDidChange: Event<void>

An event that fires when access information changes.

Methods

  • Checks if a request can be made to a language model.

    Note that calling this function will not trigger a consent UI but just checks for a persisted state.

    Parameters

    Returns undefined | boolean

    true if a request can be made, false if not, undefined if the language model does not exist or consent hasn't been asked for.