langchain.js
    Preparing search index...

    Interface XAIResponsesSearchSourceWeb

    Web search source configuration.

    interface XAIResponsesSearchSourceWeb {
        allowed_websites?: string[];
        country?: string;
        excluded_websites?: string[];
        safe_search?: boolean;
        type: "web";
    }
    Index

    Properties

    allowed_websites?: string[]

    Whitelist of allowed websites (max 5).

    country?: string

    ISO alpha-2 country code.

    excluded_websites?: string[]

    Blacklist of excluded websites (max 5).

    safe_search?: boolean

    Whether to enable safe search. Defaults to true.

    type: "web"