TypedDicts for web search tool parameters, including filters and user location.
# Source: https://github.com/openai/openai-python | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
# File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import Optional
from typing_extensions import Literal, Required, TypedDict
from ..._types import SequenceNotStr
__all__ = ["BetaWebSearchToolParam", "Filters", "UserLocation"]
class Filters(TypedDict, total=False):
"""Filters for the search."""
allowed_domains: Optional[SequenceNotStr[str]]
"""Allowed domains for the search.
If not provided, all domains are allowed. Subdomains of the provided domains are
allowed as well.
Ex
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key