Package: @effect/ai-anthropic
Module: AnthropicTool
Describes user location for localizing search results.
When to use
Use when you need to localize search results for location-dependent queries like weather, local businesses, or events.
Details
The schema uses type: "approximate" plus optional city, region,
country, and timezone. country is an ISO 3166-1 alpha-2 code, and
timezone is an IANA time zone identifier.
See
WebSearch_20250305_Args for the argument schema that consumes this locationSignature
declare const WebSearchUserLocation: Schema.Struct<{ readonly type: Schema.Literal<"approximate">; readonly city: Schema.optional<Schema.String>; readonly region: Schema.optional<Schema.String>; readonly country: Schema.optional<Schema.String>; readonly timezone: Schema.optional<Schema.String>; }>
Since v4.0.0