Table of Contents

Class UserLocation

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll
public sealed class UserLocation
Inheritance
UserLocation
Inherited Members

Constructors

UserLocation()

public UserLocation()

UserLocation(string, string, string, string)

public UserLocation(string city = null, string country = null, string region = null, string timezone = null)

Parameters

city string
country string
region string
timezone string

Properties

City

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

[JsonInclude]
[JsonPropertyName("city")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string City { get; }

Property Value

string

Country

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

[JsonInclude]
[JsonPropertyName("country")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Country { get; }

Property Value

string

Region

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

[JsonInclude]
[JsonPropertyName("region")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Region { get; }

Property Value

string

Timezone

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

[JsonInclude]
[JsonPropertyName("timezone")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Timezone { get; }

Property Value

string

Type

[JsonInclude]
[JsonPropertyName("type")]
public string Type { get; }

Property Value

string