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