Theia API Documentation v1.76.0
    Preparing search index...

    Result of a provider model-discovery attempt.

    On a successful live fetch, fromCache is false. When the live fetch fails but a cached snapshot is available, the cached models are returned with fromCache: true and error set to the failure reason, so the UI can keep the models usable while indicating they may be stale.

    interface ModelDiscoveryResult {
        error?: string;
        fromCache: boolean;
        models: DiscoveredModel[];
    }
    Index

    Properties

    error?: string

    Failure reason when the live fetch failed (even if a cached result was returned).

    fromCache: boolean

    Whether the models came from the cached snapshot because the live fetch failed.

    models: DiscoveredModel[]

    The discovered models, in the order they should be registered.