Member Junction
    Preparing search index...

    The result of WebSearchEngine.Search.

    interface WebSearchResult {
        Answer?: string;
        Attempts: WebSearchAttempt[];
        ErrorMessage?: string;
        Hits: WebSearchHit[];
        ProviderUsed?: string;
        ResultCode: WebSearchResultCode;
        Success: boolean;
    }
    Index

    Properties

    Answer?: string

    Synthesized answer, only when IncludeAnswer was requested and the provider produced one.

    Attempts: WebSearchAttempt[]

    Every provider tried, in order.

    Populated on the success path too, deliberately. If the primary provider rate-limits every call and the secondary quietly serves everything, the system looks healthy while the bill moves to a vendor nobody chose. This is what makes that visible.

    ErrorMessage?: string
    Hits: WebSearchHit[]

    Normalised hits. Empty on failure, and legitimately empty on a narrow query.

    ProviderUsed?: string

    Name of the provider that actually served the result. Always set when Success.

    Success: boolean