effect-io-ai

Package: @effect/ai-anthropic
Module: AnthropicTool

AnthropicTool.WebSearchUserLocation

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

Signature

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>; }>

Source

Since v4.0.0