Current section
Files
Jump to
Current section
Files
lib/schemas/response/input/text_content.ex
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