Debian Codegraph @

src/anthropic/types/user_location_param.py

raw
1 from __future__ import annotations
2
3 from typing import Optional
4 from typing_extensions import Literal, Required, TypedDict
5
6 __all__ = ["UserLocationParam"]
7
8
9 class UserLocationParam(TypedDict, total=False):
10 type: Required[Literal["approximate"]]
11
12 city: Optional[str]
13 """The city of the user."""
14
15 country: Optional[str]
16 """
17 The two letter
18 [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the
19 user.
20 """
21
22 region: Optional[str]
23 """The region of the user."""
24
25 timezone: Optional[str]
26 """The [IANA timezone](https://nodatime.org/TimeZones) of the user."""