Current section
Files
Jump to
Current section
Files
lib/text_generation_inference/error_response.ex
defmodule TextGenerationInference.ErrorResponse do
@moduledoc """
Provides struct and type for ErrorResponse
"""
@type t :: %__MODULE__{error: String.t(), error_type: String.t()}
defstruct [:error, :error_type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[error: :string, error_type: :string]
end
end