Current section

Files

Jump to
oapi_open_ai lib schemas eval run output_item sample output.ex
Raw

lib/schemas/eval/run/output_item/sample/output.ex

defmodule OpenAi.Eval.Run.OutputItem.Sample.Output do
@moduledoc """
Provides struct and type for a Eval.Run.OutputItem.Sample.Output
"""
@type t :: %__MODULE__{content: String.t() | nil, role: String.t() | nil}
defstruct [:content, :role]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[content: {:string, :generic}, role: {:string, :generic}]
end
end