defmodule OpenAi.Response.WebSearch.Location do @moduledoc """ Provides struct and type for a Response.WebSearch.Location """ @type t :: %__MODULE__{ city: String.t() | nil, country: String.t() | nil, region: String.t() | nil, timezone: String.t() | nil } defstruct [:city, :country, :region, :timezone] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [ city: {:string, :generic}, country: {:string, :generic}, region: {:string, :generic}, timezone: {:string, :generic} ] end end