defmodule OpenAi.Response.Refusal.Content do @moduledoc """ Provides struct and type for a Response.Refusal.Content """ @type t :: %__MODULE__{refusal: String.t(), type: String.t()} defstruct [:refusal, :type] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [refusal: {:string, :generic}, type: {:const, "refusal"}] end end