class

OpenAI::WebSearchLocation

Inherits JSON::Serializable < Reference < Object

Approximate location parameters for the search.

Constructors

new(country : String | Nil = nil, region : String | Nil = nil, city : String | Nil = nil, timezone : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

city

Free text input for the city of the user, e.g. San Francisco.

Source
city=(city : String | Nil)

Free text input for the city of the user, e.g. San Francisco.

Source
country

The two-letter ISO country code of the user, e.g. US.

Source
country=(country : String | Nil)

The two-letter ISO country code of the user, e.g. US.

Source
region

Free text input for the region of the user, e.g. California.

Source
region=(region : String | Nil)

Free text input for the region of the user, e.g. California.

Source
timezone

The IANA timezone of the user, e.g. America/Los_Angeles.

Source
timezone=(timezone : String | Nil)

The IANA timezone of the user, e.g. America/Los_Angeles.

Source