Current section
Files
Jump to
Current section
Files
lib/schemas/response/created_event.ex
defmodule OpenAi.Response.CreatedEvent do
@moduledoc """
Provides struct and type for a Response.CreatedEvent
"""
@type t :: %__MODULE__{response: OpenAi.Response.t(), type: String.t()}
defstruct [:response, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[response: {OpenAi.Response, :t}, type: {:const, "response.created"}]
end
end