Options for the OpenAI web search tool.

interface WebSearchOptions {
    filters?: null | Filters;
    searchContextSize?: null | WebSearchContextSize;
    userLocation?: null | UserLocation;
}

Properties

filters?: null | Filters

Filters for the search, such as allowed domains. If not provided, all domains are allowed.

searchContextSize?: null | WebSearchContextSize

Amount of context window space to use for the search. Defaults to medium.

userLocation?: null | UserLocation

Approximate location of the user, such as city, region, country, or timezone.