Skip to content

Interface: AnthropicUserLocation

@providerprotocol/ai


@providerprotocol/ai / anthropic / 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.

optional city: string

Defined in: src/providers/anthropic/types.ts:844

City name


optional country: string

Defined in: src/providers/anthropic/types.ts:848

ISO 3166-1 alpha-2 country code (e.g., “US”)


optional region: string

Defined in: src/providers/anthropic/types.ts:846

Region/state name


optional timezone: 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’