Current section
Files
Jump to
Current section
Files
lib/schemas/message/content/refusal.ex
defmodule OpenAi.Message.Content.Refusal do
@moduledoc """
Provides struct and type for a Message.Content.Refusal
"""
@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