Home / Class/ UserLocation Class — anthropic-sdk-python Architecture

UserLocation Class — anthropic-sdk-python Architecture

Architecture documentation for the UserLocation class in beta_web_search_tool_20250305_param.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  c5123729_ddb7_7af3_c07e_912998cba346["UserLocation"]
  8ef2d415_0cc6_1cc0_560b_32581b2d855d["beta_web_search_tool_20250305_param.py"]
  c5123729_ddb7_7af3_c07e_912998cba346 -->|defined in| 8ef2d415_0cc6_1cc0_560b_32581b2d855d

Relationship Graph

Source Code

src/anthropic/types/beta/beta_web_search_tool_20250305_param.py lines 14–36

class UserLocation(TypedDict, total=False):
    """Parameters for the user's location.

    Used to provide more relevant search results.
    """

    type: Required[Literal["approximate"]]

    city: Optional[str]
    """The city of the user."""

    country: Optional[str]
    """
    The two letter
    [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the
    user.
    """

    region: Optional[str]
    """The region of the user."""

    timezone: Optional[str]
    """The [IANA timezone](https://nodatime.org/TimeZones) of the user."""

Frequently Asked Questions

What is the UserLocation class?
UserLocation is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/beta/beta_web_search_tool_20250305_param.py.
Where is UserLocation defined?
UserLocation is defined in src/anthropic/types/beta/beta_web_search_tool_20250305_param.py at line 14.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free