Current section

Files

Jump to
oapi_open_ai lib schemas chat completion message_list.ex
Raw

lib/schemas/chat/completion/message_list.ex

defmodule OpenAi.Chat.Completion.MessageList do
@moduledoc """
Provides struct and type for a Chat.Completion.MessageList
"""
@type t :: %__MODULE__{
data: [OpenAi.Chat.Completion.MessageListData.t()],
first_id: String.t(),
has_more: boolean,
last_id: String.t(),
object: String.t()
}
defstruct [:data, :first_id, :has_more, :last_id, :object]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
data: [{OpenAi.Chat.Completion.MessageListData, :t}],
first_id: {:string, :generic},
has_more: :boolean,
last_id: {:string, :generic},
object: {:const, "list"}
]
end
end