Search Results for

    Show / Hide Table of Contents

    Class Location

    Inheritance
    object
    Location
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [Serializable]
    public sealed class Location

    Fields

    | Edit this page View Source

    city

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

    Declaration
    [SerializeField]
    [JsonProperty("city")]
    public string city
    Field Value
    Type Description
    string
    | Edit this page View Source

    country

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

    Note: Confirmed OpenAI, Perplexity uses the same format.

    Declaration
    [SerializeField]
    [JsonProperty("country")]
    public Country country
    Field Value
    Type Description
    Country
    | Edit this page View Source

    latitude

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

    Declaration
    [SerializeField]
    [ApiSpecificProperty(Api.Perplexity, "latitude")]
    public SerializableNullable<double> latitude
    Field Value
    Type Description
    SerializableNullable<double>
    | Edit this page View Source

    longitude

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

    Declaration
    [SerializeField]
    [ApiSpecificProperty(Api.Perplexity, "longitude")]
    public SerializableNullable<double> longitude
    Field Value
    Type Description
    SerializableNullable<double>
    | Edit this page View Source

    region

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

    Declaration
    [SerializeField]
    [JsonProperty("region")]
    public string region
    Field Value
    Type Description
    string
    | Edit this page View Source

    timezone

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

    Declaration
    [SerializeField]
    [JsonProperty("timezone")]
    public TimeZone timezone
    Field Value
    Type Description
    TimeZone

    Properties

    | Edit this page View Source

    Type

    Required. The type of location approximation. Always approximate.

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

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation