Interface: AnthropicUserLocation
@providerprotocol/ai / anthropic / AnthropicUserLocation
Interface: AnthropicUserLocation
Section titled “Interface: AnthropicUserLocation”Defined in: src/providers/anthropic/types.ts:840
User location for web search context.
Used to localize web search results based on the user’s approximate location.
Properties
Section titled “Properties”
optionalcity:string
Defined in: src/providers/anthropic/types.ts:844
City name
country?
Section titled “country?”
optionalcountry:string
Defined in: src/providers/anthropic/types.ts:848
ISO 3166-1 alpha-2 country code (e.g., “US”)
region?
Section titled “region?”
optionalregion:string
Defined in: src/providers/anthropic/types.ts:846
Region/state name
timezone?
Section titled “timezone?”
optionaltimezone:string
Defined in: src/providers/anthropic/types.ts:850
IANA timezone (e.g., “America/New_York”)
type:
"approximate"
Defined in: src/providers/anthropic/types.ts:842
Location type - must be ‘approximate’