Table of Contents

Class Location

Namespace
Glitch9.AIDevKit
[Serializable]
public class Location
Inheritance
object
Location

Fields

city

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

public string city

Field Value

string

country

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

Note: Confirmed OpenAI, Perplexity uses the same format.

public Country country

Field Value

Country

latitude

Perplexity only. Optional. The latitude of the user's location.

[ApiSpecificProperty(Api.Perplexity, "latitude")]
public SerializableNullable<double> latitude

Field Value

SerializableNullable<double>

longitude

Perplexity only. Optional. The longitude of the user's location.

[ApiSpecificProperty(Api.Perplexity, "longitude")]
public SerializableNullable<double> longitude

Field Value

SerializableNullable<double>

region

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

public string region

Field Value

string

timezone

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

public TimeZone timezone

Field Value

TimeZone

Properties

Type

Required. The type of location approximation. Always approximate.

[ApiSpecificProperty(Api.OpenAI, "type")]
public string Type { get; }

Property Value

string